fix: Add missing CLI option to swiftlauncher

The DBus server address selector tries to fetch the address from the
command line parser. But the option was only added to the parser for
CSwiftGuiStdApplications. This resulted in a log message from the parser.
This commit is contained in:
Lars Toenning
2024-08-22 16:16:06 +02:00
parent cb86dac062
commit 7a33e74fee

View File

@@ -40,6 +40,7 @@ int main(int argc, char *argv[])
Q_UNUSED(qa)
CGuiApplication a(CApplicationInfo::swiftLauncher(), CApplicationInfo::Laucher, CIcons::swiftLauncher1024());
a.addVatlibOptions(); // so it can be passed (hand over) to started applications
a.addDBusAddressOption(); // required by the dbus server address selector
const QCommandLineOption installerOption { { "i", "installer" }, QCoreApplication::translate("main", "Installer setup.") };
a.addParserOption(installerOption);
if (!a.parseCommandLineArgsAndLoadSetup()) { return EXIT_FAILURE; }