summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/harddrake/sound.pm4
1 files changed, 2 insertions, 2 deletions
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();