Desktop wallpaper doesn't update if programmatically set to the same URL as current wallpaper even if the actual image is different

Number:rdar://44870838 Date Originated:29-Sep-2018 01:56 AM
Status:Open (Duplicate of 44868683) Resolved:
Product:macOS + SDK Product Version:10.14
Classification:Other Bug Reproducible:Always
If you use `NSWorkspace.shared.setDesktopImageURL` to set the desktop wallpaper to an image, then later delete that image and rename another image to the same name, then set that image as the desktop wallpaper with `NSWorkspace.shared.setDesktopImageURL`, the desktop wallpaper doesn't update.

Steps to Reproduce:
Run the attached Playground while being able to see the desktop wallpaper and notice that the desktop wallpaper never changes to the "chicken-dog" image.

Expected Results:
I expected calling `NSWorkspace.shared.setDesktopImageURL` to always update the wallpaper, even if it's the same URL as the existing wallpaper, since the image at that URL might have changed.

Alternatively, expose some way to force update the cache.

Actual Results:
It doesn't update. Probably some kind of caching.




Apple Developer Relations

October 6 2018, 12:57 AM

Engineering has determined that your bug report is a duplicate of another issue (44868683) and will be closed.

The open or closed status of the original report your bug was duplicated to appears in a text box within the bug detail section of the bug reporter user interface. For security and privacy reasons, we don't provide access to the original bug yours was duped to.

By sindresorhus at Oct. 7, 2018, 4:47 p.m. (reply...)


By sindresorhus at Sept. 28, 2018, 7:01 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!