wallpaper: Add ubuntu support

This commit is contained in:
Dylan Araps 2018-05-06 07:38:50 +10:00
parent 2d7662dfe0
commit c21f777060

View File

@ -80,7 +80,7 @@ def set_desktop_wallpaper(desktop, img):
"org.cinnamon.desktop.background",
"picture-uri", "file://" + urllib.parse.quote(img)])
elif "gnome" in desktop:
elif "gnome" in desktop or "ubuntu" in desktop:
util.disown(["gsettings", "set",
"org.gnome.desktop.background",
"picture-uri", "file://" + urllib.parse.quote(img)])