diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-02-28 10:43:17 -0500 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2007-02-28 10:43:17 -0500 |
commit | 160f1cdb75e631743312cfd26fb41831ed0f5c8c (patch) | |
tree | 2dd7b519ae2a36e10d0686d3b9130e989c9e80b9 | |
parent | 7c64a3ab942df6232f1386808a817ff5ecad1311 (diff) |
don't rely on evironment getting updated in python scripts
-rwxr-xr-x | src/test-open-session-with-parameters | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test-open-session-with-parameters b/src/test-open-session-with-parameters index 72f1ade..abc31f4 100755 --- a/src/test-open-session-with-parameters +++ b/src/test-open-session-with-parameters @@ -34,7 +34,10 @@ for sid in seats: session = dbus.Interface (session_obj, 'org.freedesktop.ConsoleKit.Session') uid = session.GetUser () -current_session = manager.GetCurrentSession () +# Hmm looks like the proc environment doesn't get updated when +# os.environ is set. So, we won't use GetCurrentSession. +#current_session = manager.GetCurrentSession () +current_session = manager.GetSessionForCookie (cookie) print "Current session: %s" % current_session session_obj = bus.get_object ('org.freedesktop.ConsoleKit', ssid) |