diff --git a/spec_files/anaconda/bazzite.patch b/spec_files/anaconda/bazzite.patch index 8e20bd9e..c89dfeae 100644 --- a/spec_files/anaconda/bazzite.patch +++ b/spec_files/anaconda/bazzite.patch @@ -1,20 +1,19 @@ diff -Naur a/pyanaconda/display.py b/pyanaconda/display.py --- a/pyanaconda/display.py +++ b/pyanaconda/display.py -@@ -237,6 +237,14 @@ - :param str runres: a resolution specification string - :param gui_mode: an Anaconda display mode - """ +@@ -391,6 +391,13 @@ + if not anaconda.gui_startup_failed: + if options.runres and anaconda.gui_mode and not flags.use_rd: + def on_mutter_ready(observer): ++ # Get product name ++ with open("/sys/devices/virtual/dmi/id/product_name") as f: ++ dmi = f.read().strip() + -+ # Get product name -+ with open("/sys/devices/virtual/dmi/id/product_name") as f: -+ dmi = f.read().strip() ++ if "Jupiter" in dmi or "Galileo" in dmi or "NEXT" in dmi: ++ options.runres = "1280x800" + -+ if "Jupiter" in dmi or "Galileo" in dmi or "NEXT" in dmi: -+ runres = "1280x800" -+ - if runres and gui_mode and not flags.usevnc: - set_x_resolution(runres) + set_resolution(options.runres) + observer.disconnect() diff -Naur a/pyanaconda/ui/gui/__init__.py b/pyanaconda/ui/gui/__init__.py --- a/pyanaconda/ui/gui/__init__.py