pywal: OS X Problems
Downloaded pywal with pip3, used wal -i image.jpg then background turned black and Dock disappeared, so I’m unable to change background and show dock + some bugs appeared. No such problem as another user
OS Mojave MacBook Pro Mid 2012
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 8
- Comments: 41 (6 by maintainers)
Commits related to this issue
- Merge pull request #388 from robwaz/master Issues #330 & #382: MacOS bug fixes — committed to dylanaraps/pywal by dylanaraps 5 years ago
With Mojave, I think there might have been changes in regards to how wallpapers are handled. It’s been discussed before in #302 and #292 in terms of getting a black background and the desktop being unusable.
A temporary fix is to delete the following file:
rm ~/Library/Application Support/Dock/desktoppicture.dbI still get an error even with the removal of the VTE that was mentioned in #302.
I’ve found an alternative approach to changing the wallpaper. After calling
walwith a directory the file$HOME/.cache/wal/walcontains the path to the most recently used image. Given that I can use AppleScript to set the wallpaper successfully.NOTE: as I noted this only works after deleting
desktoppicture.dband if I haven’t messed with System Preferences.@robwaz It is also failing on
10.14.4after i updated Mac OS. I have installed pywal with brew and am running the latest version (3.3.0).I am running
wal -i path-to-imagein iTerm2. iTerm2 gets updated with new colors, however desktop turns black, and dock is locked/killed. Work around is still:Can I provide a log, or anything else for you to try to debug it?
@johnallen3d no need to delete
desktoppicture.dbyou can set the wallpaper path with sqlite.I tinkered a script to fetch a random wallpaper and get rid of most of all these problems, here are the most relevant parts:
Works great so far since High Sierra and now on Mojave.
I think you meant the pip3 version instead of brew. Pip3 version has not been updated in a while, at least not after 10 Jun. (as the pidof bug seems to still happen if .)
But yes, it seems working when cloned and installed or installed with command
pip3 install --user https://github.com/dylanaraps/pywal/archive/master.zipMacOS Catalina version 10.15.3: Attempting to set desktop wallpaper still breaks dock.
Solution for me was to make a script that simply runs
wal -n -i $1 && osascript -e "tell application \"System Events\" to tell every desktop to set picture to \"$(cat "$HOME/.cache/wal/wal")\""(thank you johnallen3d)
To be more specific, place that in a file (I named mine walit), and then run
chmod u+x walitandchmod 744 walitto make it executable. Then you can runwalit path_to_imageand it should set the wallpaper and colors!Obviously with more knowledge about shell scripts you can customize the wal command to fit your needs. The important part is appending the osascript command. Sorry this will probably appear to be a very obvious explanation for many, but as a novice I would appreciate these steps as I struggled to figure it out myself.
I just ran into this issue on my MBP running Catalina and fixed it by deleting desktoppicture.db, like others in this thread. When I next ran pywal, I got the following log in the terminal:
It appears pywal is trying to use a pidof option that is not available in the brew distribution. Running it directly prints out a help message with no
-soption:This Linux man page for pidof does indeed describe a “single shot”
-soption.However, the pywal source has a check for ‘Darwin’ and should only be calling with
-son systems other than macOS:https://github.com/dylanaraps/pywal/blob/e7d956ca18c72f52dd6c5f5c2e606d287d025723/pywal/util.py#L187
So, perhaps the OS check broke with Mojave and / or Catalina? It could also be an unrelated issue.
I second reopening this issue, running 10.14.16. wal -i ~/path/to/image breaks the desktop. Cannot change to any other desktop, background stays black and dock does not appear.
To rever the changes:
rm ~/Library/Application Support/Dock/desktoppicture.dbShouldn’t this issue be reopened? I’m still running into this issue
This issue persists for me as well. However with 3.2.1, the black desktop picture doesn’t stay. It attempts to be set and then resets back to the default Mojave desert picture.