From 73d4ab70fa3da1dc266f78142bfa13f898b9a65b Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 12 Jan 2009 22:10:19 +0000 Subject: [PATCH] Adjusted suspend control to use gdm-control instead of dbus/gnome --- cb-openbox-logout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cb-openbox-logout.py b/cb-openbox-logout.py index a2f0c53..4e974b8 100755 --- a/cb-openbox-logout.py +++ b/cb-openbox-logout.py @@ -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')