summaryrefslogtreecommitdiff
path: root/pywal/wallpaper.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-08-09 11:22:51 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-08-09 11:22:51 +1000
commitd98be353ecd5deff97804312ec798fb227adfbc1 (patch)
tree84491474f6e0648dea3a7689f0626a4809492007 /pywal/wallpaper.py
parentd9a0865277dfdfe7951b9b429d5af1f2be27d66c (diff)
general: Make pywal compatible with python 3.5
Diffstat (limited to 'pywal/wallpaper.py')
-rw-r--r--pywal/wallpaper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pywal/wallpaper.py b/pywal/wallpaper.py
index f1ce1dd..79234be 100644
--- a/pywal/wallpaper.py
+++ b/pywal/wallpaper.py
@@ -84,7 +84,7 @@ 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, f"update data set value = '{img}'"])
+ subprocess.call(["sqlite3", db_file, "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