mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-01 03:21:41 +00:00
chore: Add patched anaconda sources
This commit is contained in:
parent
42b5a2eeed
commit
48ffa8f6e4
9378
spec_files/anaconda/anaconda.spec
Normal file
9378
spec_files/anaconda/anaconda.spec
Normal file
File diff suppressed because it is too large
Load Diff
35
spec_files/anaconda/bazzite.patch
Normal file
35
spec_files/anaconda/bazzite.patch
Normal file
@ -0,0 +1,35 @@
|
||||
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
|
||||
"""
|
||||
+
|
||||
+ # 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:
|
||||
+ runres = "1280x800"
|
||||
+
|
||||
if runres and gui_mode and not flags.usevnc:
|
||||
set_x_resolution(runres)
|
||||
|
||||
diff -Naur a/pyanaconda/ui/gui/__init__.py b/pyanaconda/ui/gui/__init__.py
|
||||
--- a/pyanaconda/ui/gui/__init__.py
|
||||
+++ b/pyanaconda/ui/gui/__init__.py
|
||||
@@ -576,6 +576,13 @@
|
||||
if not primary_monitor:
|
||||
return
|
||||
|
||||
+ with open("/sys/devices/virtual/dmi/id/product_name") as f:
|
||||
+ dmi = f.read().strip()
|
||||
+
|
||||
+ if "Jupiter" in dmi or "Galileo" in dmi:
|
||||
+ util.setenv("GDK_SCALE", "1")
|
||||
+ return
|
||||
+
|
||||
monitor_geometry = primary_monitor.get_geometry()
|
||||
monitor_scale = primary_monitor.get_scale_factor()
|
||||
monitor_width_mm = primary_monitor.get_width_mm()
|
Loading…
Reference in New Issue
Block a user