diff options
author | Olivier Blin <blino@mageia.org> | 2012-09-25 22:02:39 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2012-09-25 22:02:39 +0000 |
commit | 1ea80b9ea19500c7851f138c12a5bcf36d0d93a7 (patch) | |
tree | 1352179525f44c64daa318cd04d6e817210a95d8 /tools/drakx-update-background | |
parent | ab412f0d3d7223fa8399276fd5560a7bb40f25fc (diff) | |
download | drakx-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/drakx-update-background')
-rwxr-xr-x | tools/drakx-update-background | 3 |
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); |