mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user