summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-28 11:06:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-28 11:06:07 +0000
commit81ada61efdce88d52a7a1307274fdcc7ffd00922 (patch)
tree25bf42d3b9f0a202e1c35b1aa29c94ad36855305 /lib
parent024a5f825fd49bafbee983884477e698383c2c3c (diff)
downloaddrakx-kbd-mouse-x11-81ada61efdce88d52a7a1307274fdcc7ffd00922.tar
drakx-kbd-mouse-x11-81ada61efdce88d52a7a1307274fdcc7ffd00922.tar.gz
drakx-kbd-mouse-x11-81ada61efdce88d52a7a1307274fdcc7ffd00922.tar.bz2
drakx-kbd-mouse-x11-81ada61efdce88d52a7a1307274fdcc7ffd00922.tar.xz
drakx-kbd-mouse-x11-81ada61efdce88d52a7a1307274fdcc7ffd00922.zip
- XFdrake:
o when setting background for the resolution, handle "hour"-based backgrounds (also add Mandriva.xml symlink)
Diffstat (limited to 'lib')
-rw-r--r--lib/Xconfig/resolution_and_depth.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Xconfig/resolution_and_depth.pm b/lib/Xconfig/resolution_and_depth.pm
index 21af695..18afdef 100644
--- a/lib/Xconfig/resolution_and_depth.pm
+++ b/lib/Xconfig/resolution_and_depth.pm
@@ -275,6 +275,10 @@ sub set_default_background {
my @wanted = grep { $best->[0] == $_->{X} && $best->[1] == $_->{Y} } @l;
+ if (-e "$dir/$theme{THEME}.xml") {
+ symlinkf "$theme{THEME}.xml", "$dir/Mandriva.xml";
+ }
+
foreach (@wanted) {
if ($_->{hour}) {
symlinkf $_->{file}, "$dir/$theme{THEME}-$_->{hour}.png";