#!/usr/bin/python
import os, dbus, gobject, dbus.glib
bus = dbus.SessionBus()
def onSessionIdleChanged(state):
if state:
os.system("gaim-remote 'setstatus?status=away&message=Session idle'")
else:
os.system("gaim-remote 'setstatus?status=available&message='")
bus.add_signal_receiver(onSessionIdleChanged, 'SessionIdleChanged',
'org.gnome.ScreenSaver')
gobject.MainLoop().run()
--
gaim should be able to turn on an away message when xscreensaver activates
https://bugs.launchpad.net/bugs/23693
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs