From 9e896459136991e9a53730a0e37ea97d85e8ffe6 Mon Sep 17 00:00:00 2001 From: mirkobrombin Date: Sun, 11 Sep 2022 13:55:30 +0200 Subject: [PATCH] workaround live mode --- vanilla_first_setup/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vanilla_first_setup/main.py b/vanilla_first_setup/main.py index f5cbdbc..8350241 100644 --- a/vanilla_first_setup/main.py +++ b/vanilla_first_setup/main.py @@ -123,5 +123,9 @@ class FirstSetupApplication(Adw.Application): def main(version): """The application's entry point.""" + if os.env.get("USERNAME") in ["ubuntu", "vanillaos", "vanilla-os"]: + logging.warning("Running in Live mode, closing...") + sys.exit(0) + app = FirstSetupApplication() return app.run(sys.argv)