48 lines
1.6 KiB
Diff
48 lines
1.6 KiB
Diff
From: Andreas Hartmetz <ahartmetz@gmail.com>
|
|
Date: Sat, 20 Feb 2016 20:01:42 +0000
|
|
Subject: Disable fallback session management (requires Qt >= 5.6.0).
|
|
X-Git-Url: http://quickgit.kde.org/?p=plasma-workspace.git&a=commitdiff&h=b5e814a7b2867914327c889794b1088027aaafd6
|
|
---
|
|
Disable fallback session management (requires Qt >= 5.6.0).
|
|
|
|
This prevents processes from dying when session logout is cancelled.
|
|
Session restore is not an issue in these, it's disabled anyway.
|
|
---
|
|
|
|
|
|
--- a/klipper/main.cpp
|
|
+++ b/klipper/main.cpp
|
|
@@ -73,7 +73,7 @@
|
|
|
|
KAboutData::setApplicationData(aboutData);
|
|
|
|
-#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
|
|
+#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 1)
|
|
QGuiApplication::setFallbackSessionManagementEnabled(false);
|
|
#endif
|
|
auto disableSessionManagement = [](QSessionManager &sm) {
|
|
--- a/krunner/main.cpp
|
|
+++ b/krunner/main.cpp
|
|
@@ -66,7 +66,7 @@
|
|
|
|
KAboutData::setApplicationData(aboutData);
|
|
|
|
-#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
|
|
+#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 1)
|
|
QGuiApplication::setFallbackSessionManagementEnabled(false);
|
|
#endif
|
|
auto disableSessionManagement = [](QSessionManager &sm) {
|
|
diff --git a/shell/main.cpp b/shell/main.cpp
|
|
index 49ea484..68cf9e9 100644
|
|
--- a/shell/main.cpp
|
|
+++ b/shell/main.cpp
|
|
@@ -101,7 +101,7 @@
|
|
cliOptions.process(app);
|
|
aboutData.processCommandLine(&cliOptions);
|
|
|
|
-#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
|
|
+#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 1)
|
|
QGuiApplication::setFallbackSessionManagementEnabled(false);
|
|
#endif
|
|
auto disableSessionManagement = [](QSessionManager &sm) {
|