Wallpaper not cycling through photos randomly

I am trying to have Wallpaper (through System Settings) rotate through pictures in my photos album as my desktop background.

I have selected and added an album from the Wallpaper setting of system settings via "Add Photo Album" from the pulldown menu at the bottom.

It will display 1 picture on the desktop but when I click on Random (to cycle pictures) it reverts to the generic Mac background.

I have tried running through 'All Pictures', different Albums, individual (smaller albums), and nothing seems to work.

I have it selected to rotate every day but even changing it to all of the different options (5 seconds, when waking from sleep, etc) it doesn't work.


In addition, if I have it rotate through pictures not randomly (without checking the box) it only cycles through 2 pictures.


The photos file is located on an External drive with 3.5 TB available. It is loaded as the default photos album in Photos and doesn't show any delay when observing photos from the app.

The Photos file is too large to put on the main HD which is why it goes through the external HD.

I have run disk first aid on both volumes, checked the "Profiles" (there are none), tried restarting, and probably a few other things.


Mac Studio, Ventura 13.5.1, Apple M2 Ultra, 128GB Memory, 1TB HD space (with 511 GB available)

Apple Studio Display and a single monitor, connected via the thunderbolt cord (that was supplied with the monitor).

Thanks for your help,

Mark

Mac Studio, macOS 13.5

Posted on Sep 6, 2023 9:57 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 14, 2024 12:59 AM

I found my way to solve this.


  1. There is a perfect open source software "osxphotos": https://rhettbull.github.io/osxphotos/index.html
  2. I use this to export all of my photos tagged with "bg" from the Photos app to a file system folder "bg.osxphotos"
  3. This happens automatically via crontab on a daily basis
  4. In system preferences I use "bg.osxphotos" as the source of my random wallpaper photos
  5. Since there's no caching issue with file system folders (instead of Photos app) this works perfectly


crontab entry


50 9 * * * /usr/local/bin/photos-to-bg 


script /usr/local/bin/photos-to-bg


#!/bin/sh
rm -rf /Users/xxx/Pictures/bg.osxphotos/*
/Users/xxx/.local/bin/osxphotos export /Users/xxx/Pictures/bg.osxphotos --skip-original-if-edited --update --keyword "bg" 2>&1


Similar questions

51 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Wallpaper not cycling through photos randomly

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.