From 77770afce909796fd145247cf6bbef818bfc52c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giuseppe=20Ghib=C3=B2?= Date: Sun, 19 Mar 2023 12:50:05 +0100 Subject: Add missed $::prefix --- perl-install/harddrake/sound.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/harddrake') diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm index 4c2e41ab0..490359b25 100644 --- a/perl-install/harddrake/sound.pm +++ b/perl-install/harddrake/sound.pm @@ -113,7 +113,7 @@ sub stop_pulseaudio { my ($pulseaudio_user) = _user_pid('/usr/bin/pulseaudio'); if ($pulseaudio_user) { - if (-x '/usr/bin/pulseaudio') { + if (-x $::prefix . '/usr/bin/pulseaudio') { rooted('/usr/bin/su', '-l', $pulseaudio_user, '-c', '/usr/bin/pulseaudio --kill'); } } @@ -441,7 +441,7 @@ sub config { push @alternative, $driver; my %des = modules::category2modules_and_description('multimedia/sound'); - my $is_pulseaudio_installed = -f $pa_startup_scriptfile && -d '/etc/sound/profiles/pulse'; + my $is_pulseaudio_installed = -f $pa_startup_scriptfile && -d $::prefix . '/etc/sound/profiles/pulse'; my $is_pulseaudio_enabled_val = is_pulseaudio_enabled(); my $is_pulseaudio_glitchfree_enabled_val = is_pulseaudio_glitchfree_enabled(); -- cgit v1.2.1