Adding support for gnome dark mode wallpapers

This commit is contained in:
LordVicky 2022-06-28 12:42:32 +04:00
parent 236aa48e74
commit ad5879b2e6

View File

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