bazzite/spec_files/steamdeck-dsp/bazzite.patch

58 lines
1.5 KiB
Diff
Raw Normal View History

--- a/wireplumber/hardware-profiles/wireplumber-hwconfig
+++ b/wireplumber/hardware-profiles/wireplumber-hwconfig
@@ -45,39 +45,23 @@
install_hwprofile ()
{
local -r prpath="$1"
- local -r runconf=/run/wireplumber
+ local -r confdir=/usr/share/wireplumber
local confd
local conffile
- echo "Installing wireplumber hardware profile from '$prpath' in $runconf"
-
- rm -rf $runconf
+ echo "Installing wireplumber hardware profile from '$prpath' in $confdir"
for confd in "${confdirs[@]}"
do
if [ -d "$prpath"/"$confd" ]
then
- mkdir -p $runconf/"$confd"
+ mkdir -p $confdir/"$confd"
for conffile in "$prpath"/"$confd"/*.lua
do
- cp -av $conffile $runconf/"$confd"
+ /usr/bin/cp -avf $conffile $confdir/"$confd"
done
fi
done
-
- cat - <<EOF > $runconf/README
-This configuration was:
-
- - installed in $runconf
- - by $0
- - from $prpath
-
-It will be regenerated every time the system restarts.
-
-To alter it permanently either:
- - edit $prpath
- - override in \$XDG_CONFIG_DIR/wireplumber/
-EOF
}
unidentified ()
2024-01-15 03:59:01 +00:00
--- a/wireplumber/systemd/system/wireplumber-sysconf.service
+++ b/wireplumber/systemd/system/wireplumber-sysconf.service
@@ -11,7 +11,7 @@
Description=Hardware Specific Wireplumber Configuration
After=multi-user.target
Requisite=multi-user.target
-ConditionPathIsDirectory=/run
+Requires=wireplumber-workaround.service
Before=shutdown.target
[Service]