summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorGiuseppe Ghibò <ghibo@mageia.org>2023-03-19 12:50:05 +0100
committerGiuseppe Ghibò <ghibo@mageia.org>2023-04-08 12:31:17 +0200
commit77770afce909796fd145247cf6bbef818bfc52c0 (patch)
treec464ecb1926b731c41d75efad21b217a86aa1eeb /perl-install
parent42e8119b970c271b84b0ff85e0744e589bb1817d (diff)
downloaddrakx-77770afce909796fd145247cf6bbef818bfc52c0.tar
drakx-77770afce909796fd145247cf6bbef818bfc52c0.tar.gz
drakx-77770afce909796fd145247cf6bbef818bfc52c0.tar.bz2
drakx-77770afce909796fd145247cf6bbef818bfc52c0.tar.xz
drakx-77770afce909796fd145247cf6bbef818bfc52c0.zip
Add missed $::prefix
Diffstat (limited to 'perl-install')
-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();