mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-30 21:32:48 +00:00
Merge pull request #63 from ublue-os/priv-write
fix(deck): Patch steamos-priv-write to address false failures
This commit is contained in:
commit
3ca106838a
@ -14,6 +14,7 @@ Patch3: https://gitlab.com/popsulfr/steamos-btrfs/-/raw/main/files/usr/l
|
||||
Patch4: user.patch
|
||||
Patch5: bazzite-btrfs.patch
|
||||
Patch6: systemd-run.patch
|
||||
Patch7: priv-write.patch
|
||||
|
||||
Requires: python3
|
||||
Requires: python3-libevdev
|
||||
|
21
spec_files/jupiter-hw-support/priv-write.patch
Normal file
21
spec_files/jupiter-hw-support/priv-write.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff --git a/usr/bin/steamos-polkit-helpers/steamos-priv-write b/usr/bin/steamos-polkit-helpers/steamos-priv-write
|
||||
index 907133b..caaa807 100755
|
||||
--- a/usr/bin/steamos-polkit-helpers/steamos-priv-write
|
||||
+++ b/usr/bin/steamos-polkit-helpers/steamos-priv-write
|
||||
@@ -13,15 +13,14 @@ WRITE_VALUE="$2"
|
||||
function CommitWrite()
|
||||
{
|
||||
echo "commit: $WRITE_VALUE -> $WRITE_PATH" | systemd-cat -t p-steamos-priv-write -p warning
|
||||
- echo "$WRITE_VALUE" > "$WRITE_PATH"
|
||||
chmod a+w "$WRITE_PATH"
|
||||
+ echo "$WRITE_VALUE" > "$WRITE_PATH"
|
||||
exit 0
|
||||
}
|
||||
|
||||
function DeclineWrite()
|
||||
{
|
||||
echo "decline: $WRITE_VALUE -> $WRITE_PATH" | systemd-cat -t p-steamos-priv-write -p err
|
||||
- echo "$WRITE_VALUE" > "$WRITE_PATH"
|
||||
exit 1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user