From 5a93a48973aa12dbc9122f051a00b155b929a6b3 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Wed, 7 Jun 2023 18:25:34 +0200 Subject: [PATCH] Hide macos-only setting on non-macos --- daemon/kdeconnectd.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index 521e5efd3..ced324801 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -133,9 +133,11 @@ int main(int argc, char *argv[]) QCommandLineParser parser; QCommandLineOption replaceOption({QStringLiteral("replace")}, i18n("Replace an existing instance")); parser.addOption(replaceOption); +#ifdef Q_OS_MAC QCommandLineOption macosPrivateDBusOption({QStringLiteral("use-private-dbus")}, i18n("Launch a private D-Bus daemon with kdeconnectd (macOS test-purpose only)")); parser.addOption(macosPrivateDBusOption); +#endif aboutData.setupCommandLine(&parser); parser.process(app);