fix(deck): Patch steamos-priv-write to address false failures

Fix from ChimeraOS: fa7697fd99 (diff-9a8d1fe67ff1847580d67f802d4e030c51fec313a023b1e51240cea9f3129006)
This commit is contained in:
RJ Trujillo 2023-07-20 20:09:24 -06:00
parent 874cd6d6bd
commit 0d307fdace
2 changed files with 22 additions and 0 deletions

View File

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

View 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
}