summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2012-09-25 22:02:39 +0000
committerOlivier Blin <blino@mageia.org>2012-09-25 22:02:39 +0000
commit1ea80b9ea19500c7851f138c12a5bcf36d0d93a7 (patch)
tree1352179525f44c64daa318cd04d6e817210a95d8 /tools
parentab412f0d3d7223fa8399276fd5560a7bb40f25fc (diff)
downloaddrakx-kbd-mouse-x11-1ea80b9ea19500c7851f138c12a5bcf36d0d93a7.tar
drakx-kbd-mouse-x11-1ea80b9ea19500c7851f138c12a5bcf36d0d93a7.tar.gz
drakx-kbd-mouse-x11-1ea80b9ea19500c7851f138c12a5bcf36d0d93a7.tar.bz2
drakx-kbd-mouse-x11-1ea80b9ea19500c7851f138c12a5bcf36d0d93a7.tar.xz
drakx-kbd-mouse-x11-1ea80b9ea19500c7851f138c12a5bcf36d0d93a7.zip
do not crash when no xorg.conf but set a default background instead
This should fix some installations having no background at all, for example on systems with multiple graphic cards and none configured by default.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/drakx-update-background3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/drakx-update-background b/tools/drakx-update-background
index 2ba3293..6a2d13c 100755
--- a/tools/drakx-update-background
+++ b/tools/drakx-update-background
@@ -7,4 +7,5 @@ use Xconfig::resolution_and_depth;
require_root_capability();
-Xconfig::resolution_and_depth::set_default_background(Xconfig::xfree->read->get_resolution);
+my $resolution = eval { Xconfig::xfree->read->get_resolution };
+Xconfig::resolution_and_depth::set_default_background($resolution);