Fix password setting and inhibit system sleep during install

This commit is contained in:
2026-02-05 17:03:36 +01:00
parent 400235067d
commit 7613bdf8d5
2 changed files with 21 additions and 2 deletions

View File

@@ -465,6 +465,14 @@ class InstallerWindow(Adw.ApplicationWindow):
# Show success in UI even in mock
self.show_finish_page("Mock Installation Complete!")
else:
# Inhibit logout/suspend
app = self.get_application()
self.inhibit_cookie = app.inhibit(
self,
Gtk.ApplicationInhibitFlags.LOGOUT | Gtk.ApplicationInhibitFlags.SUSPEND,
"Installing Operating System"
)
self.show_progress_page("Installing Iridium OS...")
thread = threading.Thread(
target=self.run_installation,