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")
|
||||
else:
|
||||
logging.info("OS Shutdown")
|
||||
os.system("systemctl poweroff")
|
||||
os.system("systemctl poweroff -i")
|
||||
|
||||
def restart_system(self, widget):
|
||||
|
||||
@ -126,7 +126,7 @@ class Panel(ScreenPanel):
|
||||
"machine.reboot")
|
||||
else:
|
||||
logging.info("OS Reboot")
|
||||
os.system("systemctl reboot")
|
||||
os.system("systemctl reboot -i")
|
||||
|
||||
def retry(self, widget):
|
||||
self.update_text((_("Connecting to %s") % self._screen.connecting_to_printer))
|
||||
|
@ -334,9 +334,9 @@ class Panel(ScreenPanel):
|
||||
self._gtk.remove_dialog(dialog)
|
||||
if response_id == Gtk.ResponseType.OK:
|
||||
if method == "reboot":
|
||||
os.system("systemctl reboot")
|
||||
os.system("systemctl reboot -i")
|
||||
else:
|
||||
os.system("systemctl poweroff")
|
||||
os.system("systemctl poweroff -i")
|
||||
elif response_id == Gtk.ResponseType.APPLY:
|
||||
if method == "reboot":
|
||||
self._screen._ws.send_method("machine.reboot")
|
||||
|
Loading…
x
Reference in New Issue
Block a user