Add changes applied to SessionManager.py and make the script almost quiet
authorJulien Valroff <julien@kirya.net>
Sun, 5 Jun 2011 11:15:50 +0000 (13:15 +0200)
committerJulien Valroff <julien@kirya.net>
Sun, 5 Jun 2011 11:15:50 +0000 (13:15 +0200)
SessionManager.py

index fb5508b..6033b07 100755 (executable)
@@ -4,6 +4,15 @@ SessionManager
 Copyright (c) 2010--2011, Olivier Mehani <shtrom@ssji.net>
 All rights reserved.
 
+Original source: https://scm.narf.ssji.net/svn/shtrom/browser/default-env/bin/SessionManager.py
+Code documented at http://www.narf.ssji.net/~shtrom/wiki/projets/gnomescreensavernosession
+
+Local changes by Julien Valroff <julien@kirya.net>
+  2011-05:
+    * Use standard python path
+    * Drop GPG-related code
+    * Make the script usable with Debian
+
 $Id$
 A drop-in replacement for org.gnome.SessionManager, doing almost nothing.
 Loosely based on basic instructions at [0,1,2,3,5,6].
@@ -97,7 +106,7 @@ class SessionManagerPresence(dbus.service.Object):
     @dbus.service.method(dbus_interface=dbus.PROPERTIES_IFACE,
         in_signature='s', out_signature='a{sv}')
     def GetAll(self, interface_name):
-        print "%s.GetAll(%s)" % (ogSMP, interface_name)
+        #print "%s.GetAll(%s)" % (ogSMP, interface_name)
         return {'status':              dbus.UInt32(self.status),
             'status-text':  self.status_text,
             }
@@ -153,7 +162,7 @@ class XScreenSaverIdleChecker():
         print ("XScreenSaverIdleChecker ready with timeout %d" % idle_timeout)
     
     def check_idle(self, smp):
-        print "Checking idleness..."
+        #print "Checking idleness..."
         xss_info = self.xss.XScreenSaverAllocInfo()
         self.xss.XScreenSaverQueryInfo(self.dpy, self.root, xss_info)
         idle = xss_info.contents.idle/1000