diff --git a/install/web-eid.desktop b/install/web-eid.desktop index 661a7b21..b534d311 100644 --- a/install/web-eid.desktop +++ b/install/web-eid.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Type=Application -Exec=web-eid %F +Exec=web-eid --about Icon=web-eid Name=Web eID diff --git a/src/controller/application.cpp b/src/controller/application.cpp index 20720185..97afecc5 100644 --- a/src/controller/application.cpp +++ b/src/controller/application.cpp @@ -118,6 +118,8 @@ CommandWithArgumentsPtr Application::parseArgs() QCommandLineOption parentWindow(QStringLiteral("parent-window"), QStringLiteral("Parent window handle (unused)"), QStringLiteral("parent-window")); + QCommandLineOption aboutArgument(QStringLiteral("about"), + QStringLiteral("Show Web-eID about Window")); QCommandLineParser parser; parser.setApplicationDescription(QStringLiteral( "Application that communicates with the Web eID browser extension via standard input and " @@ -128,6 +130,7 @@ CommandWithArgumentsPtr Application::parseArgs() parser.addOptions({{{"c", "command-line-mode"}, "Command-line mode, read commands from command line arguments instead of " "standard input."}, + aboutArgument, parentWindow}); static const auto COMMANDS = "'" + CMDLINE_GET_SIGNING_CERTIFICATE + "', '" @@ -161,9 +164,14 @@ CommandWithArgumentsPtr Application::parseArgs() // https://bugs.chromium.org/p/chromium/issues/detail?id=354597#c2 qDebug() << "Parent window handle is unused" << parser.value(parentWindow); } + if (parser.isSet(aboutArgument)) { + return std::make_unique(CommandType::ABOUT, QVariantMap()); + } +#ifndef Q_OS_LINUX if (arguments().size() == 1) { return std::make_unique(CommandType::ABOUT, QVariantMap()); } +#endif return nullptr; }