Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Pitt <martinpitt@gnome.org>2013-03-21 13:56:24 (GMT)
committer Simon Schampijer <simon@laptop.org>2013-03-22 09:30:27 (GMT)
commitd513315fcac11dc228f04fbff69696beaf72fbd3 (patch)
tree762a602de4769add21e8fbf1961f6edce0a5e0ae
parent5b2c88b621d684d8631655fb5fab03fc70fbd2bf (diff)
Session: Properly check for logind
session.py talks to logind, so it needs to specifically check if logind is running. /sys/fs/cgroup/systemd will be present also when systemd was built without logind (--disable-logind). For details, see: <https://mail.gnome.org/archives/desktop-devel-list/2013-March/msg00092.html Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--src/jarabe/model/session.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jarabe/model/session.py b/src/jarabe/model/session.py
index a5cd4a4..7394ef0 100644
--- a/src/jarabe/model/session.py
+++ b/src/jarabe/model/session.py
@@ -29,7 +29,7 @@ _session_manager = None
def have_systemd():
- return os.access("/sys/fs/cgroup/systemd", 0) >= 0
+ return os.access("/run/systemd/seats", 0) >= 0
class SessionManager(session.SessionManager):