fix(deck): Patch broken mura setup script

This commit is contained in:
Kyle Gospodnetich 2024-06-16 19:23:57 -07:00
parent 1fd0d7aa66
commit 477f765ee1
2 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,7 @@ URL: https://github.com/ublue-os/bazzite
Source: https://gitlab.com/evlaV/galileo-mura-extractor/-/archive/main/galileo-mura-extractor-main.tar.gz
Patch0: fedora.patch
Patch1: valve.patch
BuildRequires: systemd-rpm-macros
BuildRequires: gcc

View File

@ -0,0 +1,11 @@
--- a/galileo-mura-setup
+++ b/galileo-mura-setup
@@ -16,7 +16,7 @@
deck_serial=${deck_serial^^}
manufacturer=$(sed -n 's/.*Manufacturer: \(.*\)/\1/p' < /tmp/mura/info.txt)
-mura_base_path=/home/deck/.config/gamescope/mura
+mura_base_path="${XDG_CONFIG_HOME:-$HOME/.config}/gamescope/mura"
mkdir -p "$mura_base_path"
if [ "$manufacturer" != "SDC" ]; then