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
6 elif (data == 'logout'):
7 - os.system('openbox --exit')
8 + os.system('gnome-session-save --logout')
10 elif (data == 'restart'):
11 self.dbus_powermanagement.Reboot()
12 - #os.system('gdm-control --reboot && openbox --exit')
14 elif (data == 'shutdown'):
15 self.dbus_powermanagement.Shutdown()
16 - #os.system('gdm-control --shutdown && openbox --exit')
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')
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')
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')
30 elif (data == 'lock'):
31 os.system('gnome-screensaver-command -l')