system and splash: add ignore inhibitors to reboot and shutdown
This commit is contained in:
parent
4800b56492
commit
35007af482
@ -116,7 +116,7 @@ class Panel(ScreenPanel):
|
|||||||
"machine.shutdown")
|
"machine.shutdown")
|
||||||
else:
|
else:
|
||||||
logging.info("OS Shutdown")
|
logging.info("OS Shutdown")
|
||||||
os.system("systemctl poweroff")
|
os.system("systemctl poweroff -i")
|
||||||
|
|
||||||
def restart_system(self, widget):
|
def restart_system(self, widget):
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ class Panel(ScreenPanel):
|
|||||||
"machine.reboot")
|
"machine.reboot")
|
||||||
else:
|
else:
|
||||||
logging.info("OS Reboot")
|
logging.info("OS Reboot")
|
||||||
os.system("systemctl reboot")
|
os.system("systemctl reboot -i")
|
||||||
|
|
||||||
def retry(self, widget):
|
def retry(self, widget):
|
||||||
self.update_text((_("Connecting to %s") % self._screen.connecting_to_printer))
|
self.update_text((_("Connecting to %s") % self._screen.connecting_to_printer))
|
||||||
|
@ -334,9 +334,9 @@ class Panel(ScreenPanel):
|
|||||||
self._gtk.remove_dialog(dialog)
|
self._gtk.remove_dialog(dialog)
|
||||||
if response_id == Gtk.ResponseType.OK:
|
if response_id == Gtk.ResponseType.OK:
|
||||||
if method == "reboot":
|
if method == "reboot":
|
||||||
os.system("systemctl reboot")
|
os.system("systemctl reboot -i")
|
||||||
else:
|
else:
|
||||||
os.system("systemctl poweroff")
|
os.system("systemctl poweroff -i")
|
||||||
elif response_id == Gtk.ResponseType.APPLY:
|
elif response_id == Gtk.ResponseType.APPLY:
|
||||||
if method == "reboot":
|
if method == "reboot":
|
||||||
self._screen._ws.send_method("machine.reboot")
|
self._screen._ws.send_method("machine.reboot")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user