diff --git a/src/runtime/main.cpp b/src/runtime/main.cpp --- a/src/runtime/main.cpp +++ b/src/runtime/main.cpp @@ -28,6 +28,7 @@ #include #include #include +#include static bool isEnabled() { @@ -59,6 +60,13 @@ app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kglobalaccel"))); KAboutData::setApplicationData(aboutdata); + { + QCommandLineParser parser; + aboutdata.setupCommandLine(&parser); + parser.process(app); + aboutdata.processCommandLine(&parser); + } + // check if kglobalaccel is disabled if (!isEnabled()) { qCDebug(KGLOBALACCELD) << "kglobalaccel is disabled!";