diff options
author | William Jon McCann <mccann@jhu.edu> | 2006-11-06 15:28:41 -0500 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2006-11-06 15:28:41 -0500 |
commit | babc733eff30a2be18fa3f99bc3ef4f14e35d259 (patch) | |
tree | 729bc3c4107c86dd833e7aef3a7efe883d75056e /src/test-session | |
parent | be02d5de51072235c20d6974f0cccb485055a02e (diff) |
Fix some small leaks. Add --timed-exit to daemon for valgrinding.
Diffstat (limited to 'src/test-session')
-rwxr-xr-x | src/test-session | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test-session b/src/test-session index 3b26057..72f1ade 100755 --- a/src/test-session +++ b/src/test-session @@ -22,6 +22,7 @@ params.append (("display-device", dbus.Variant ("/dev/tty8"))) cookie = manager.OpenSessionWithParameters (params) os.environ['XDG_SESSION_COOKIE'] = cookie +print "Got cookie: %s" % cookie seats = manager.GetSeats () for sid in seats: @@ -33,7 +34,7 @@ for sid in seats: session = dbus.Interface (session_obj, 'org.freedesktop.ConsoleKit.Session') uid = session.GetUser () -current_session = manager.GetSession (cookie) +current_session = manager.GetCurrentSession () print "Current session: %s" % current_session session_obj = bus.get_object ('org.freedesktop.ConsoleKit', ssid) |