summaryrefslogtreecommitdiff
path: root/user/libkworkspace/session.patch
blob: ec29807c1cef23efd83e98d49642d088647100ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- libkworkspace/sessionmanagementbackend.cpp.old	2020-01-16 12:37:11.000000000 +0000
+++ libkworkspace/sessionmanagementbackend.cpp	2020-01-26 23:48:25.419351063 +0000
@@ -77,6 +77,11 @@
 
 /*********************************************************************************/
 
+bool LogindSessionBackend::exists()
+{
+    return QDBusConnection::systemBus().interface()->isServiceRegistered(QStringLiteral("org.freedesktop.login1"));
+}
+
 LogindSessionBackend::LogindSessionBackend()
 {
     m_login1 = new OrgFreedesktopLogin1ManagerInterface(QStringLiteral("org.freedesktop.login1"), QStringLiteral("/org/freedesktop/login1"), QDBusConnection::systemBus(), this);
@@ -199,7 +204,7 @@
 
 bool ConsoleKitSessionBackend::exists()
 {
-    return QDBusConnection::systemBus().interface()->isServiceRegistered(QStringLiteral("org.freedesktop.login1"));
+    return QDBusConnection::systemBus().interface()->isServiceRegistered(QStringLiteral("org.freedesktop.ConosleKit"));
 }
 
 ConsoleKitSessionBackend::ConsoleKitSessionBackend()