┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJin Liu <[email protected]>2024-10-01 19:20:04 +0800
committerMéven Car <[email protected]>2024-10-08 13:53:11 +0000
commit8fb90d064dc672213d8b7fc89584bafe2bc740b3 (patch)
treeee4f036ab871a28474e2b343c117cc9e55a58aaa /src
parentf3b4d53720e2b8ab9c20eb9fb9e05fcc2386b5cf (diff)
daemon: prevent daemon to quit on `openNewWindow`
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index df725a33f..f811c4f06 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -164,6 +164,9 @@ int main(int argc, char **argv)
}
if (parser.isSet(QStringLiteral("daemon"))) {
+ // Prevent KApplicationLauncherJob from cause the application to quit on job finish.
+ QCoreApplication::setQuitLockEnabled(false);
+
// Disable session management for the daemonized version
// See https://bugs.kde.org/show_bug.cgi?id=417219
auto disableSessionManagement = [](QSessionManager &sm) {