mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-29 00:32:52 +00:00
chore: Update patch file for new anaconda
This commit is contained in:
parent
6cad3a3112
commit
bc46bbcb2c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user