wallpaper: Correct sqlite3 command.

This commit is contained in:
Dylan Araps 2017-07-31 16:07:54 +10:00
parent b49ace1294
commit d8293b20de

View File

@ -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", str(db_file), f"update data set value = {img}"])
subprocess.call(["sqlite3", db_file, f"update data set value = '{img}'"])
# Kill the dock to fix issues with wallpapers sharing names.
util.disown("killall", "Dock")