From: Chris Koeritz Date: Tue, 24 Jan 2012 19:59:02 +0000 (-0500) Subject: adding notes and a useful file for getting xscreensaver working again on ubuntu oneir... X-Git-Tag: 2.140.90~1656^2~25 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=16d39151c50f700891a9011b56331b2454ff5092;p=feisty_meow.git adding notes and a useful file for getting xscreensaver working again on ubuntu oneiric ocelot. --- diff --git a/database/configuration/xscreensaver/readme.txt b/database/configuration/xscreensaver/readme.txt new file mode 100644 index 00000000..ffad94c3 --- /dev/null +++ b/database/configuration/xscreensaver/readme.txt @@ -0,0 +1,9 @@ + + +how to fix your screensaver after ubuntu oneiric ocelot wipes everything out: + +this page has good info about most of what's needed: + http://www.webupd8.org/2011/10/things-to-tweak-after-installing-ubuntu.html + +this page shows how to get menu working again: + http://ubuntuforums.org/showthread.php?t=1865593 diff --git a/database/configuration/xscreensaver/screenLock.py b/database/configuration/xscreensaver/screenLock.py new file mode 100644 index 00000000..8e7838ce --- /dev/null +++ b/database/configuration/xscreensaver/screenLock.py @@ -0,0 +1,23 @@ +#!/usr/bin/python + +import dbus +import dbus.service +import dbus.glib +import gobject +import os + +class ScreenDbusObj(dbus.service.Object): + def __init__(self): + session_bus = dbus.SessionBus() + bus_name=dbus.service.BusName("org.gnome.ScreenSaver",bus=session_bus) + dbus.service.Object.__init__(self,bus_name, '/org/gnome/ScreenSaver') + + @dbus.service.method("org.gnome.ScreenSaver") + def Lock(self): + os.system( "xscreensaver-command -lock" ) + + +if __name__ == '__main__': + object=ScreenDbusObj() + gobject.MainLoop().run() +