From da0aed5446417bd4d9f89fea22c6726ee3897f4c Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Fri, 5 Mar 2021 13:52:58 +0100 Subject: [PATCH] Enable KActivities integration by default in kwin_wayland --- src/main_wayland.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main_wayland.cpp b/src/main_wayland.cpp index c4ee37f620..897815e1ec 100644 --- a/src/main_wayland.cpp +++ b/src/main_wayland.cpp @@ -624,6 +624,12 @@ int main(int argc, char * argv[]) i18n("Starts the session without global shortcuts support.")); parser.addOption(noGlobalShortcutsOption); +#ifdef KWIN_BUILD_ACTIVITIES + QCommandLineOption noActivitiesOption(QStringLiteral("no-kactivities"), + i18n("Disable KActivities integration.")); + parser.addOption(noActivitiesOption); +#endif + QCommandLineOption exitWithSessionOption(QStringLiteral("exit-with-session"), i18n("Exit after the session application, which is started by KWin, closed."), QStringLiteral("/path/to/session")); @@ -637,7 +643,9 @@ int main(int argc, char * argv[]) a.processCommandLine(&parser); #ifdef KWIN_BUILD_ACTIVITIES - a.setUseKActivities(false); + if (parser.isSet(noActivitiesOption)) { + a.setUseKActivities(false); + } #endif if (parser.isSet(replaceOption)) {