Make edge.sh less jackwagon (#2)

Signed-off-by: wj25czxj47bu6q <96372288+wj25czxj47bu6q@users.noreply.github.com>
This commit is contained in:
wj25czxj47bu6q 2024-05-11 23:08:47 -07:00 committed by GitHub
parent 2b4f9b929b
commit bede9ebffe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,12 +38,14 @@ Requires=pipewire-pulse.socket
[Service]
Type=oneshot
ExecStart=/usr/bin/pacmd
ExecStart=-/usr/bin/pacmd
[Install]
WantedBy=default.target' | sudo tee /etc/systemd/user/pacmd.service
# Run `systemctl --user enable --now pacmd.service` in your appVM.
mkdir -p /etc/systemd/user-preset/
echo 'enable pacmd.service' | sudo tee /etc/systemd/user-preset/10-pacmd.preset
# Ignore the error. It is just pacmd complaining that pulseaudio daemon is not there. But it will somehow magically trigger the pipewire-pulse socket and make audio work.
# For some uncomprehensible reason, manually enabling pipewire-pulse.service will not work for Edge audio.
# /rw/home/user is broken: https://forum.qubes-os.org/t/how-does-rw-home-user-directory-work/15602