site  contact  subhomenews

Wallpaper buglet fixed

February 04, 2022 — BarryK

When I updated Easy from 3.2.1 to 3.3, there is a change of theme, and got the new GTK, JWM and icons; however, the wallpaper was still that of version 3.2.1. I reported it to the forum, and a manual fix to my blog:

https://forum.puppylinux.com/viewtopic.php?p=48729#p48729

When EasyOS is built in woofQ, the default wallpaper is named 'default.jpg' or 'default.png'. At bootup, the script /root/.xinitrc, that starts the X desktop, runs /usr/sbin/background_reshape, that truncates the current wallpaper image, top and bottom, so that it will fit whatever is your widescreen proportions.

This truncated image is saved in a sub-directory, in my case it is /usr/share/backgrounds/177/default.jpg

Fine, except at a version update, /usr/share/backgrounds/default.jpg has changed, but the generated one in folder '177' is still that of the previous version of Easy. Hence, the old wallpaper displays on the screen.

The fix is easy, just delete /usr/share/backgrounds/*/default.jpg and next time X is started, the truncated default.jpg will get regenerated.

In the 'initrd' there is a script /sbin/fixlayers, that runs whenever there is a SFS layer change or version change. I have inserted this line into the script:

rm -f /mnt/${WKG_DEV}/${WKG_DIR}.session/usr/share/backgrounds/*/default.* 2>/dev/null

Problemo gone!

I also reported that the "petget" icon on the desktop is now labeled "pkgget", which also did not update. This is fixed also in /sbin/fixlayers:

sed -i -e 's%label="petget"%label="pkgget"%' /mnt/${WKG_DEV}/${WKG_DIR}.session/root/Choices/ROX-Filer/PuppyPin

So far, haven't had any serious bugs reported.      

Tags: easy