mirror of
https://github.com/nikdoof/oblogout.git
synced 2025-12-22 14:59:24 +00:00
Adjusted suspend control to use gdm-control instead of dbus/gnome
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user