summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);