From 26b40c39ef74eec4f0e9cc7834cfd033a4decbb3 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Tue, 31 Oct 2006 22:40:34 -0500 Subject: Add a script to test FUS related functionality. Fix a problem where error was reported twice. --- src/test-session | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/test-session') diff --git a/src/test-session b/src/test-session index d77c5f1..3b26057 100755 --- a/src/test-session +++ b/src/test-session @@ -1,15 +1,12 @@ #!/usr/bin/env python +# +# Test opening a new session +# import os import gobject import dbus - -def activate_reply (res): - print "session activated" - -def activate_error (e): - print str (e) - +import dbus.glib bus = dbus.SystemBus () @@ -42,8 +39,6 @@ print "Current session: %s" % current_session session_obj = bus.get_object ('org.freedesktop.ConsoleKit', ssid) session = dbus.Interface (session_obj, 'org.freedesktop.ConsoleKit.Session') -session.Activate (reply_handler = activate_reply, error_handler = activate_error) - mainloop = gobject.MainLoop () gobject.timeout_add (30000, mainloop.quit) -- cgit