mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-06-06 01:37:26 +02:00
wallpaper: Use string instead of path.
This commit is contained in:
parent
0b7a91a8e5
commit
b49ace1294
@ -84,7 +84,7 @@ def set_desktop_wallpaper(desktop, img):
|
|||||||
def set_mac_wallpaper(img):
|
def set_mac_wallpaper(img):
|
||||||
"""Set the wallpaper on macOS."""
|
"""Set the wallpaper on macOS."""
|
||||||
db_file = HOME / "Library/Application Support/Dock/desktoppicture.db"
|
db_file = HOME / "Library/Application Support/Dock/desktoppicture.db"
|
||||||
subprocess.call(["sqlite3", db_file, f"update data set value = {img}"])
|
subprocess.call(["sqlite3", str(db_file), f"update data set value = {img}"])
|
||||||
|
|
||||||
# Kill the dock to fix issues with wallpapers sharing names.
|
# Kill the dock to fix issues with wallpapers sharing names.
|
||||||
util.disown("killall", "Dock")
|
util.disown("killall", "Dock")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user