mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-05 06:35:43 +00:00
Cleanup
This commit is contained in:
@@ -66,10 +66,10 @@ class MenuScreen(BaseScreen):
|
||||
mopidy.utils.process.exit_process()
|
||||
elif key == "shutdown_icon" or key == "shutdown":
|
||||
if os.system("gksu -- shutdown now -h") != 0:
|
||||
os.system("shutdown now -h")
|
||||
os.system("sudo shutdown now -h")
|
||||
elif key == "restart_icon" or key == "restart":
|
||||
if os.system("gksu -- shutdown -r now") != 0:
|
||||
os.system("shutdown -r now")
|
||||
os.system("sudo shutdown -r now")
|
||||
elif key == "ip":
|
||||
self.check_connection()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user