From 1ea80b9ea19500c7851f138c12a5bcf36d0d93a7 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 25 Sep 2012 22:02:39 +0000 Subject: 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. --- tools/drakx-update-background | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.1