by poignard · 8y ago · 0 comments
Also @OP - you might want to take a look at the wallpaper-macos[0] lib that I developed for Artpip. It uses the nodobj node wrapper but it should be a useful reference. You don't need to read from the sqlite DB or deal with restarting the dock. You can reliably get the current wallpaper like so [1]. Also you might want to check out how [2] it handles setting backgrounds on multiple spaces, should you want to support that.
[0] https://github.com/tom-james-watson/wallpaper-macos
[1] https://github.com/tom-james-watson/wallpaper-macos/blob/mas...
As a consequence, you can set the wallpaper for each Space to a different image or directory in System Preferences, and the app will only expose its "gallery management" features when it can match the current wallpaper with an image in its assigned Source directory.
One quick question I had was if it is possible to have Artpip only apply a background to one screen. I have an external monitor and I'd prefer if the two didn't always show the same wallpaper. Additionally, I have one personal wallpaper I particularity enjoy, and would like if I could keep that permanently on one monitor, while simultaneously running Artpip on the other.