Today morning I installed KDE Neon to a VirtualBox VM. I’ve used both Kubuntu and Neon previously as the primary OS at different points in my time at uni. Tinkering with the desktop visuals until you’ve done that for the better part of a week only to do the same in the next as well is the sign of having a good aesthetic1 taste ;) This time, it was mainly for the solid Linux experience that I set up the VM. However, having the aesthetic taste that I have, I wanted to check the wallpapers that came with it. To my dismay, each wallpaper was inside its own sub-directory, which meant me going over them could not be an easy task as clicking the ‘next’ button (or pressing whatever key) in the image viewer. So, being the SRE intern I am, I wrote a small shell script that would automate2 the task of iterating over the sub-directories and copying each wallpaper once to a directory within my home directory
All was going well until I ran the script a couple times—only two wallpapers (both with different file extensions) were available in the destination directory. I then tried debugging the simple script I just wrote for about good ten to fifteen minutes only to discover that a logic error was replacing each wallpaper by the next as they were been copied, hence only two wallpapers in the end with different file extensions. The whole thing seemed utterly trivial, and it was—I just had not paid enough attention. The code may feel right, and it may not easily be the case if you are not even looking at it carefully.