From bd39d8c999915cad90869d9a4f653c715ea41220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giuseppe=20Ghib=C3=B2?= Date: Fri, 31 Mar 2023 19:11:08 +0200 Subject: Reorder services disabling in disable_all_pipewire() --- perl-install/harddrake/sound.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm index ec4823372..6cdefc266 100644 --- a/perl-install/harddrake/sound.pm +++ b/perl-install/harddrake/sound.pm @@ -356,10 +356,8 @@ sub disable_all_pipewire { rooted('/usr/bin/systemctl', '--global', 'disable', 'wireplumber.service'); } - if ($in->do_pkgs->is_installed('pipewire')) { - foreach ('pipewire.socket', 'pipewire.service') { - rooted('/usr/bin/systemctl', '--global', 'disable', $_); - } + if ($in->do_pkgs->is_installed('pipewire-media-session')) { + rooted('/usr/bin/systemctl', '--global', 'disable', 'pipewire-media-session.service'); } if ($in->do_pkgs->is_installed('pipewire-pulseaudio')) { @@ -368,8 +366,10 @@ sub disable_all_pipewire { } } - if ($in->do_pkgs->is_installed('pipewire-media-session')) { - rooted('/usr/bin/systemctl', '--global', 'disable', 'pipewire-media-session.service'); + if ($in->do_pkgs->is_installed('pipewire')) { + foreach ('pipewire.socket', 'pipewire.service') { + rooted('/usr/bin/systemctl', '--global', 'disable', $_); + } } } -- cgit v1.2.1