[gnome-shell] loginManager.js: Check for logind, not for systemd



commit a7cd4657f5acd890569c3cbb331cbef809d408cb
Author: Martin Pitt <martinpitt gnome org>
Date:   Thu Mar 21 09:07:23 2013 +0100

    loginManager.js: Check for logind, not for systemd
    
    It is possible to build systemd without logind, in which case
    /sys/fs/cgroup/systemd would still exist. Check for /run/systemd/seats instead,
    as recommended by systemd upstream.
    
    For details, see:
    <https://mail.gnome.org/archives/desktop-devel-list/2013-March/msg00092.html>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696252

 js/misc/loginManager.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/misc/loginManager.js b/js/misc/loginManager.js
index 8543ede..ce4af41 100644
--- a/js/misc/loginManager.js
+++ b/js/misc/loginManager.js
@@ -76,7 +76,7 @@ const ConsoleKitSession = Gio.DBusProxy.makeProxyWrapper(ConsoleKitSessionIface)
 const ConsoleKitManager = Gio.DBusProxy.makeProxyWrapper(ConsoleKitManagerIface);
 
 function haveSystemd() {
-    return GLib.access("/sys/fs/cgroup/systemd", 0) >= 0;
+    return GLib.access("/run/systemd/seats", 0) >= 0;
 }
 
 function versionCompare(required, reference) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]