From 81ada61efdce88d52a7a1307274fdcc7ffd00922 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 28 Feb 2008 11:06:07 +0000 Subject: - XFdrake: o when setting background for the resolution, handle "hour"-based backgrounds (also add Mandriva.xml symlink) --- lib/Xconfig/resolution_and_depth.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Xconfig/resolution_and_depth.pm') 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"; -- cgit v1.2.1