dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[BUG] Allow spaces in Wallpaper file names

Open StackGoblin opened this issue 1 year ago • 10 comments

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

  1. Go to "Set Wallpaper" in the ML4W menu
  2. Select any image besides the default image
  3. Restart computer
  4. 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

StackGoblin avatar Jul 21 '25 01:07 StackGoblin

Which version of the dotfiles are you using? And have you installed the dotfiles with the Dotfiles Installer?

mylinuxforwork avatar Jul 21 '25 09:07 mylinuxforwork

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

StackGoblin avatar Jul 24 '25 16:07 StackGoblin

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.

mylinuxforwork avatar Jul 24 '25 21:07 mylinuxforwork

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.

Image

StackGoblin avatar Jul 25 '25 15:07 StackGoblin

Quick update, I was able to recover my custom files from previous backups with the aur install

StackGoblin avatar Jul 25 '25 15:07 StackGoblin

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.

StackGoblin avatar Jul 25 '25 16:07 StackGoblin

Is there anything else I can try to resolve this?

StackGoblin avatar Jul 30 '25 16:07 StackGoblin

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.

StackGoblin avatar Jul 30 '25 16:07 StackGoblin

Ah. Yes. That’s correct. Spaces generate the issues. I will try to optimize the script to allow spaces in the future.

mylinuxforwork avatar Jul 31 '25 04:07 mylinuxforwork

Should work now in rolling release. Tested with filename "default space.jpg"

mylinuxforwork avatar Aug 05 '25 06:08 mylinuxforwork