chore: Update patch file for new anaconda

This commit is contained in:
Kyle Gospodnetich 2024-11-09 10:15:46 -08:00
parent 6cad3a3112
commit bc46bbcb2c

View File

@ -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