updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / openboxlogout-gnome / gnome.patch
blob4e365a8e872513128e9a5631b59f253dbb1055af
1 --- openboxlogout/openboxlogout.py.old 2009-04-20 16:36:47.000000000 +0300
2 +++ openboxlogout/openboxlogout.py 2009-04-20 16:45:59.000000000 +0300
3 @@ -302,24 +302,22 @@
4 if (data == 'cancel'):
5 self.quit()
6 elif (data == 'logout'):
7 - os.system('openbox --exit')
8 + os.system('gnome-session-save --logout')
9 + self.quit()
10 elif (data == 'restart'):
11 self.dbus_powermanagement.Reboot()
12 - #os.system('gdm-control --reboot && openbox --exit')
13 + self.quit()
14 elif (data == 'shutdown'):
15 self.dbus_powermanagement.Shutdown()
16 - #os.system('gdm-control --shutdown && openbox --exit')
17 + self.quit()
18 elif (data == 'suspend'):
19 self.dbus_powermanagement.Suspend(0)
20 - #os.system('dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Suspend int32:0')
21 self.quit()
22 elif (data == 'hibernate'):
23 self.dbus_powermanagement.Hiberate()
24 - #os.system('dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Hibernate')
25 self.quit()
26 elif (data == 'safesuspend'):
27 self.dbus_powermanagement.SuspendHybrid(0)
28 - #os.system('dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.SuspendHybrid int32:0')
29 self.quit()
30 elif (data == 'lock'):
31 os.system('gnome-screensaver-command -l')