1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-02-24 08:04:31 +00:00

desktop_login: handle JPEG-XL backgrounds as well as PNG and webp

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2025-02-18 14:39:07 -08:00
parent cccd9c54c3
commit 7a3733d208

View File

@ -233,9 +233,13 @@ sub run {
assert_script_run "dnf -y install GraphicsMagick", 300;
assert_script_run "gm convert -size 1024x768 xc:black /usr/share/backgrounds/black.png";
assert_script_run "gm convert -size 1024x768 xc:black /usr/share/backgrounds/black.webp";
assert_script_run "gm convert -size 1024x768 xc:black /usr/share/backgrounds/black.jxl";
if (script_run 'for i in /usr/share/backgrounds/f*/default/*.png; do ln -sf /usr/share/backgrounds/black.png $i; done') {
# if that failed, they're probably in webp format
assert_script_run 'for i in /usr/share/backgrounds/f*/default/*.webp; do ln -sf /usr/share/backgrounds/black.webp $i; done';
# if that failed, they're probably in webp format...
if (script_run 'for i in /usr/share/backgrounds/f*/default/*.webp; do ln -sf /usr/share/backgrounds/black.webp $i; done') {
# ...no? jpeg xl maybe?
assert_script_run 'for i in /usr/share/backgrounds/f*/default/*.jxl; do ln -sf /usr/share/backgrounds/black.jxl $i; done';
}
}
if ($desktop eq "kde") {
# use solid blue background for SDDM