summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan araps <dylan.araps@gmail.com>2017-08-15 15:01:49 +1000
committerdylan araps <dylan.araps@gmail.com>2017-08-15 15:01:49 +1000
commit554a95f14d624883e81bab91aec8bf9365f0e9a7 (patch)
treed728baedaba0c4cddc96fdbc75f8995cec98cb45
parent2dc6ce2cdaa5ff1c6ccb829d08e24aaac67eb6c7 (diff)
wallpaper: Fix stray path object macOS.
-rw-r--r--pywal/wallpaper.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pywal/wallpaper.py b/pywal/wallpaper.py
index 1a76883..06dde63 100644
--- a/pywal/wallpaper.py
+++ b/pywal/wallpaper.py
@@ -84,8 +84,9 @@ def set_desktop_wallpaper(desktop, img):
def set_mac_wallpaper(img):
"""Set the wallpaper on macOS."""
- db_file = HOME / "Library/Application Support/Dock/desktoppicture.db"
- subprocess.call(["sqlite3", db_file, "update data set value = '%s'" % img])
+ db_file = "Library/Application Support/Dock/desktoppicture.db"
+ db_path = os.path.join(HOME, db_file)
+ subprocess.call(["sqlite3", db_path, "update data set value = '%s'" % img])
# Kill the dock to fix issues with cached wallpapers.
# macOS caches wallpapers and if a wallpaper is set that shares