Skip to content

Commit

Permalink
rpm: restore pipewire units on pulseaudio-qubes removal
Browse files Browse the repository at this point in the history
Since pipewire units are getting disabled on pulseaudio-qubes install,
reverse the action when pulseaudio-qubes is getting removed (and usually
replaced with pipewire-qubes). Note the %postun is called on the upgrade
too, so use 'preset' (which will DTRT once 75-pulseaudio-qubes.preset is
gone) instead of 'disable' directly.

QubesOS/qubes-issues#6358
  • Loading branch information
marmarek committed Jul 17, 2023
1 parent bb8632d commit 54b07c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rpm_spec/gui-agent.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,14 @@ else
preset_units /usr/lib/systemd/user-preset/75-pulseaudio-qubes.preset upgrade
fi

%postun -n pulseaudio-qubes

for unit_name in pipewire.socket pipewire.service \
pipewire-pulse.socket pipewire-pulse.service \
wireplumber.service; do
systemctl --no-reload --global preset "$unit_name" >/dev/null 2>&1 || :
done

%post -n pipewire-qubes
%systemd_user_post pipewire.service pipewire.socket wireplumber.service

Expand Down

0 comments on commit 54b07c6

Please sign in to comment.