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

FB5423441: The NSWorkspace.shared.desktopImageURL method should support setting wallpaper for a specific desktop space #19

Open
sindresorhus opened this issue Aug 11, 2019 · 0 comments

Comments

@sindresorhus
Copy link
Member

sindresorhus commented Aug 11, 2019

  • Date: 2018-10-07
  • Resolution: Open
  • Area: AppKit
  • OS: macOS 10.14
  • Type: Suggestion

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 to NSWorkspace.shared.setDesktopImageURL as an option.

Actual Results:
There's currently no way to do this.

Notes:
Related GitHub issue: sindresorhus/macos-wallpaper#4

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

No branches or pull requests

1 participant