You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The NSWorkspace.shared.desktopImageURL method is useful for getting the currently active desktop wallpaper, but for dynamic wallpapers it just returns the HEIC file, which contains all the images, but there's no way to know which of those images are currently being shown on the desktop.
Steps to Reproduce:
Go to the "Desktop and Screen Saver" preference pane in "System Preferences".
Ensure it's set to a dynamic wallpaper.
Run NSWorkspace.shared.desktopImageURL(for: NSScreen.main!) in Playground.
Notice that it returns a HEIC file, like "file:///System/Library/CoreServices/DefaultDesktop.heic".
Expected Results:
I expected there to be a way to get the currently shown image of a dynamic wallpaper.
This is important for being able to imitate the desktop, for example, for hiding the desktop icons momentarily while doing a screen recording.
Actual Results:
There no way to find this out, which makes the NSWorkspace.shared.desktopImageURL method not reliable in all cases, even less when dynamic wallpapers gets popular.
Description
The
NSWorkspace.shared.desktopImageURL
method is useful for getting the currently active desktop wallpaper, but for dynamic wallpapers it just returns the HEIC file, which contains all the images, but there's no way to know which of those images are currently being shown on the desktop.Steps to Reproduce:
NSWorkspace.shared.desktopImageURL(for: NSScreen.main!)
in Playground.Expected Results:
I expected there to be a way to get the currently shown image of a dynamic wallpaper.
This is important for being able to imitate the desktop, for example, for hiding the desktop icons momentarily while doing a screen recording.
Actual Results:
There no way to find this out, which makes the
NSWorkspace.shared.desktopImageURL
method not reliable in all cases, even less when dynamic wallpapers gets popular.Notes:
Relevant GitHub issue: sindresorhus/macos-wallpaper#17
The text was updated successfully, but these errors were encountered: