Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The random wallpaper selection feature tries to load "dot underscore" metadata files generated by macOS, and then defaults back to the checkerboard image #935

Open
parkamonster opened this issue Nov 26, 2024 · 3 comments

Comments

@parkamonster
Copy link

On macOS, if you populate the wallpapers folder with a bunch of images, an equal number of dot underscore files will be generated due to the destination volume being a non-Apple file system.

For example, copy these files across…

Wallpaper1.png
Cool Picture.jpg
Background 4.jpg

…and macOS will detect that the files are going to a non-Apple file system and generate metadata these files along side them…

._Wallpaper1.png
._Cool Picture.jpg
._Background 4.jpg

Unfortunately, the random wallpaper selection feature will include these metadata files in its list of images, meaning that literally half of the files will fail to load, reverting back to the checkerboard image. Delete these metadata files and you never see the problem again!

MiSTer should filter out these files, which are impossible to delete without a trip to the Terminal, or the installation of paid 3rd party utilities to clean the drive of Mac metadata (such as BlueHarvest, $12.99).

@limi
Copy link
Contributor

limi commented Nov 26, 2024

Irrespective of macOS’ bad behavior here, MiSTer’s wallpaper loading code shouldn’t enumerate and attempt to load files that are hidden in Linux either. Any file starting with a dot should be ignored.

@ojaksch
Copy link

ojaksch commented Nov 26, 2024

Good point! MiSTer's /etc/samba/smb.conf could include a line
hide files = /.*/
per default and per share and problem would be gone...

@sorgelig
Copy link
Member

i've added commit skipping dot files. Try latest unstable build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants