Adjusted suspend control to use gdm-control instead of dbus/gnome

This commit is contained in:
Andrew Williams
2009-01-12 22:10:19 +00:00
parent 26254d2717
commit 73d4ab70fa

View File

@@ -207,7 +207,7 @@ class OpenboxLogout():
elif (data=='shutdown'):
os.system('gdm-control --shutdown && openbox --exit')
elif (data=='suspend'):
os.system('dbus-send --session --dest=org.gnome.PowerManager --type=method_call --reply-timeout=2000 /org/gnome/PowerManager org.gnome.PowerManager.Suspend')
os.system('gdm-control --suspend && openbox --exit')
elif (data=='hibernate'):
os.system('dbus-send --session --dest=org.gnome.PowerManager --type=method_call --reply-timeout=2000 /org/gnome/PowerManager org.gnome.PowerManager.Hibernate')