From 35007af4823b839866d71a5248a03a8c8715760b Mon Sep 17 00:00:00 2001 From: alfrix Date: Thu, 10 Aug 2023 00:05:23 -0300 Subject: [PATCH] system and splash: add ignore inhibitors to reboot and shutdown --- panels/splash_screen.py | 4 ++-- panels/system.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/panels/splash_screen.py b/panels/splash_screen.py index 65b88b96..6f1c4812 100644 --- a/panels/splash_screen.py +++ b/panels/splash_screen.py @@ -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)) diff --git a/panels/system.py b/panels/system.py index 34904f0e..8a70193e 100644 --- a/panels/system.py +++ b/panels/system.py @@ -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")