We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2f0ce5 commit 671bf89Copy full SHA for 671bf89
manifest
@@ -323,4 +323,8 @@ postinstallhook() {
323
324
# Disable SPDIF/IEC958 audio output
325
sudo sed -e '/\[Mapping iec958/,+5 s/^/#/' -i '/usr/share/alsa-card-profile/mixer/profile-sets/default.conf'
326
+
327
+ # Replace wpctl with a wrapper to work around Steam resetting audio
328
+ mv /usr/bin/wpctl /usr/libexec/wpctl
329
+ mv /usr/bin/wpctl-wrapper /usr/bin/wpctl
330
}
rootfs/usr/bin/wpctl-wrapper
@@ -0,0 +1,14 @@
1
+#! /bin/bash
2
3
+parents=$(pstree --show-parents $$)
4
5
+steam_parent=0
6
+if echo "$parents" | grep "\-steam\-" &> /dev/null; then
7
+ steam_parent=1
8
+fi
9
10
+if [[ "$steam_parent" == "1" ]] && [[ "$1" == "clear-default" ]]; then
11
+ exit 0
12
13
14
+/usr/libexec/wpctl $@
0 commit comments