Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Wallpaper setting stop working in MacOS Sonoma #715

Open
albert-ying opened this issue Sep 27, 2023 · 5 comments
Open

Wallpaper setting stop working in MacOS Sonoma #715

albert-ying opened this issue Sep 27, 2023 · 5 comments

Comments

@albert-ying
Copy link

The wal -i "wallpaper.png" stopped setting the wallpaper on MacOS Sonoma

@mamantoha
Copy link

https://github.com/dylanaraps/pywal/blob/master/pywal/wallpaper.py#L133

This was done by modifying the ~/Library/Application Support/Dock/desktoppicture.db, but it seems that MacOS Somona no longer relies on this file.

@ArchYoimiya
Copy link

Are there any alternative solutions to it?

@mamantoha
Copy link

AppleScript

tell application "System Events"
  tell every desktop
    set picture to POSIX file "/path/to/wallpaper.jpeg"
  end tell
end tell

But this solution seems to change the wallpaper only in the current space 😿 .

@robwaz
Copy link
Contributor

robwaz commented Oct 21, 2023

Sorry about that. Apple changed how wallpapers works with Sonoma and I hadn't updated to it yet to see what they did.

Unfortunately this repo is no longer receiving updates and I do not believe anyone can claim it. If you need Sonoma support, you can try my fork located here. https://github.com/robwaz/pywal

If you do use this fork and run into an issue, please file it against my fork. These changes are "best effort" based on how things seem to work. I have no issue on my Mac though. :)

@yuhonas
Copy link

yuhonas commented Jan 3, 2024

AppleScript

tell application "System Events"
  tell every desktop
    set picture to POSIX file "/path/to/wallpaper.jpeg"
  end tell
end tell

But this solution seems to change the wallpaper only in the current space 😿 .

@mamantoha try something like https://gist.github.com/yuhonas/2c329f010665885e91ff9ae39a6e8042 which enumerates through all the desktops and set's the wallpaper based on user input (but could be hardcoded obviously)

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

No branches or pull requests

5 participants