diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-09-21 02:19:11 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-09-21 02:19:11 +0000 |
commit | 804b3d5a24475fd18f3f4a816ce6f58a7d4d41d7 (patch) | |
tree | 9a17f45e18913195c4c1fba04ec710a7d597ee3e /perl-install | |
parent | e323bb09f690d5a917f64d9708b9b3d0000bfee4 (diff) | |
download | drakx-804b3d5a24475fd18f3f4a816ce6f58a7d4d41d7.tar drakx-804b3d5a24475fd18f3f4a816ce6f58a7d4d41d7.tar.gz drakx-804b3d5a24475fd18f3f4a816ce6f58a7d4d41d7.tar.bz2 drakx-804b3d5a24475fd18f3f4a816ce6f58a7d4d41d7.tar.xz drakx-804b3d5a24475fd18f3f4a816ce6f58a7d4d41d7.zip |
don't allow a broken X configuration to break mouse configuration
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/mouse.pm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm index 52614e10a..959188276 100644 --- a/perl-install/mouse.pm +++ b/perl-install/mouse.pm @@ -438,10 +438,12 @@ sub write_conf { &write($do_pkgs, $mouse); $modules_conf->write if $mouse->{device} eq "usbmouse" && !$::testing; - require Xconfig::xfree; - my $xfree_conf = Xconfig::xfree->read; - set_xfree_conf($mouse, $xfree_conf, $b_keep_auxmouse_unchanged); - $xfree_conf->write; + eval { + require Xconfig::xfree; + my $xfree_conf = Xconfig::xfree->read; + set_xfree_conf($mouse, $xfree_conf, $b_keep_auxmouse_unchanged); + $xfree_conf->write; + } } sub change_mouse_live { |