From 4e2bee021439ebbfe1d0d1502fdf95ff4b7c4cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 17 Sep 2016 23:09:54 +0200 Subject: Change background symlink from default.jpg to default.png --- NEWS | 3 +++ lib/Xconfig/resolution_and_depth.pm | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 6480bad..ba9d645 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +- default theme backgrounds are now png instead of jpg, adapted symlink + accordingly (default.png) (mga#19292) + Version 1.14 - 14 July 2016 - switch from legacy (KOI8-R) 'ru4' keyboard to 'ru' diff --git a/lib/Xconfig/resolution_and_depth.pm b/lib/Xconfig/resolution_and_depth.pm index 06662ce..fc008ce 100644 --- a/lib/Xconfig/resolution_and_depth.pm +++ b/lib/Xconfig/resolution_and_depth.pm @@ -263,7 +263,7 @@ sub set_default_background { my %theme = getVarsFromSh("$::prefix/etc/sysconfig/bootsplash"); my @l = map { - if (my ($X, $Y, undef, $hour) = /^\Q$theme{THEME}\E-(\d+)x(\d+)(-(.*))?.jpg$/) { + if (my ($X, $Y, undef, $hour) = /^\Q$theme{THEME}\E-(\d+)x(\d+)(-(.*))?.png$/) { { file => $_, X => $X, Y => $Y, hour => $hour }; } else { () } } all($dir); @@ -288,9 +288,9 @@ sub set_default_background { foreach (@wanted) { if ($_->{hour}) { - symlinkf $_->{file}, "$dir/$theme{THEME}-$_->{hour}.jpg"; + symlinkf $_->{file}, "$dir/$theme{THEME}-$_->{hour}.png"; } else { - symlinkf $_->{file}, "$dir/default.jpg"; + symlinkf $_->{file}, "$dir/default.png"; } } } -- cgit v1.2.1