[BUG] Allow spaces in Wallpaper file names
Describe the bug
After updating the dotfiles, the wallpaper is always set to the default.jpg image in ml4w's config folder after restarting the computer. This occurs regardless of if the new image used is in the same folder or a different folder.
Steps to reproduce
- Go to "Set Wallpaper" in the ML4W menu
- Select any image besides the default image
- Restart computer
- Wallpaper will revert to original image
Expected behavior
Have the wallpaper remain as the one selected by the user next time the computer is turned on.
Screenshots
No response
Distribution
EndeavourOS
If Other, specify
EndeavourOS x86_64 - Linux 6.15.7-arch1-1
Additional context
No response
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Which version of the dotfiles are you using? And have you installed the dotfiles with the Dotfiles Installer?
Sorry for the delay, haven't even touched my computer in a few days.
I'm using aur/ml4w-hyprland 2.9.8.7-1 and installed the update with ml4w-hyperland-setup
Can you install the latest version with the Dotfiles Installer? https://mylinuxforwork.github.io/dotfiles/getting-started/install There is also a migration guide.
This could fix the issue.
You migration guide seems to be out of date, as I don't see any of the options in the dotfile installer you are showing after I have installed the flatpak version. This seems to have also wiped all of my custom .conf files from my previous install as they are no longer present in their .config folders, which I suppose is on me for not backing them up separately first.
Quick update, I was able to recover my custom files from previous backups with the aur install
After initially installing the dotfiles and restoring my previous configuration files the chosen wallpaper would persist between restarts. However, I believe that when I turned on wallpaper cache the issue returned, and the wallpaper is the default image on startup. However, using the switch wallpaper shortcut changes the image to a wallpaper in my custom folder. Turning off the wallpaper cache and clearing the cache from the settings menu does not resolve the issue.
Is there anything else I can try to resolve this?
I actually think I might have found the cause. The filename of the image I wanted to use contained spaces in it (e.g. wallpaper name.jgp). Once I renamed the file to remove whitespace the problem was resolved.
Ah. Yes. That’s correct. Spaces generate the issues. I will try to optimize the script to allow spaces in the future.
Should work now in rolling release. Tested with filename "default space.jpg"