diff options
author | Colin Guthrie <colin@mageia.org> | 2011-05-18 23:06:54 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-05-18 23:06:54 +0000 |
commit | 37091eb0b2c22ce3ee8d8af9febdc73264db79a1 (patch) | |
tree | ace898eb1064781b59c2149712b45bf9003e9d37 | |
parent | f1acb96cbeac96fdec5108310b761cf17dd55541 (diff) | |
download | drakx-backup-do-not-use-37091eb0b2c22ce3ee8d8af9febdc73264db79a1.tar drakx-backup-do-not-use-37091eb0b2c22ce3ee8d8af9febdc73264db79a1.tar.gz drakx-backup-do-not-use-37091eb0b2c22ce3ee8d8af9febdc73264db79a1.tar.bz2 drakx-backup-do-not-use-37091eb0b2c22ce3ee8d8af9febdc73264db79a1.tar.xz drakx-backup-do-not-use-37091eb0b2c22ce3ee8d8af9febdc73264db79a1.zip |
More PA config writing robustness
-rw-r--r-- | perl-install/harddrake/sound.pm | 5 |
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 = ( |