diff options
author | Giuseppe Ghibò <ghibo@mageia.org> | 2023-03-19 12:50:05 +0100 |
---|---|---|
committer | Giuseppe Ghibò <ghibo@mageia.org> | 2023-04-08 12:31:17 +0200 |
commit | 77770afce909796fd145247cf6bbef818bfc52c0 (patch) | |
tree | c464ecb1926b731c41d75efad21b217a86aa1eeb | |
parent | 42e8119b970c271b84b0ff85e0744e589bb1817d (diff) | |
download | drakx-77770afce909796fd145247cf6bbef818bfc52c0.tar drakx-77770afce909796fd145247cf6bbef818bfc52c0.tar.gz drakx-77770afce909796fd145247cf6bbef818bfc52c0.tar.bz2 drakx-77770afce909796fd145247cf6bbef818bfc52c0.tar.xz drakx-77770afce909796fd145247cf6bbef818bfc52c0.zip |
Add missed $::prefix
-rw-r--r-- | perl-install/harddrake/sound.pm | 4 |
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(); |