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
In "System Preferences" => "Desktop & Screen Saver", you can set a wallpaper for the current space. So you can switch to the space you want to change the wallpaper for and then set the wallpaper. There should be a way to do this programmatically too.
Expected Results:
I expected to be able to specify which space to set the wallpaper for with the NSWorkspace.shared.setDesktopImageURL API.
I would suggest adding two new methods to NSScreen. One for getting all the spaces in the screen (so you could set a wallpaper on all spaces), and one for getting the active space. Using these new APIs, you could get the space you want and then be able to specify it to NSWorkspace.shared.setDesktopImageURL as an option.
Actual Results:
There's currently no way to do this.
Description
In "System Preferences" => "Desktop & Screen Saver", you can set a wallpaper for the current space. So you can switch to the space you want to change the wallpaper for and then set the wallpaper. There should be a way to do this programmatically too.
Expected Results:
I expected to be able to specify which space to set the wallpaper for with the
NSWorkspace.shared.setDesktopImageURL
API.I would suggest adding two new methods to
NSScreen
. One for getting all the spaces in the screen (so you could set a wallpaper on all spaces), and one for getting the active space. Using these new APIs, you could get the space you want and then be able to specify it toNSWorkspace.shared.setDesktopImageURL
as an option.Actual Results:
There's currently no way to do this.
Notes:
Related GitHub issue: sindresorhus/macos-wallpaper#4
The text was updated successfully, but these errors were encountered: