summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2011-05-18 23:06:54 +0000
committerColin Guthrie <colin@mageia.org>2011-05-18 23:06:54 +0000
commit708cd0af89bd9aa437bc258e7069cfdbc113a968 (patch)
treeace898eb1064781b59c2149712b45bf9003e9d37
parent0f2835a86fe8d8eb820db0544513c9bef8ac466e (diff)
downloaddrakx-708cd0af89bd9aa437bc258e7069cfdbc113a968.tar
drakx-708cd0af89bd9aa437bc258e7069cfdbc113a968.tar.gz
drakx-708cd0af89bd9aa437bc258e7069cfdbc113a968.tar.bz2
drakx-708cd0af89bd9aa437bc258e7069cfdbc113a968.tar.xz
drakx-708cd0af89bd9aa437bc258e7069cfdbc113a968.zip
More PA config writing robustness
-rw-r--r--perl-install/harddrake/sound.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index 8b6efeb5c..d100079f4 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -319,6 +319,9 @@ sub switch {
my $old_value = $is_pulseaudio_enabled;
my $write_config = sub {
+ if (!$is_pulseaudio_installed) {
+ return;
+ }
set_pulseaudio($is_pulseaudio_enabled);
set_pulseaudio_glitchfree($is_pulseaudio_glitchfree_enabled);
set_PA_autospan($is_pulseaudio_enabled);
@@ -330,7 +333,7 @@ sub switch {
if ($old_value ne $is_pulseaudio_enabled) {
require any;
any::ask_for_X_restart($in);
- }
+ }
};
my @common = (