Errors fixed.

This commit is contained in:
threadreaper 2020-08-04 03:11:22 -05:00
parent 2329b1859f
commit d695168a44
2 changed files with 3 additions and 4 deletions

View File

@ -92,7 +92,7 @@ def get_export_type(export_type):
"json": "colors.json", "json": "colors.json",
"konsole": "colors-konsole.colorscheme", "konsole": "colors-konsole.colorscheme",
"kitty": "colors-kitty.conf", "kitty": "colors-kitty.conf",
"nqq": "colors-nqq.css", "nqq": "colors-nqq.css",
"plain": "colors", "plain": "colors",
"putty": "colors-putty.reg", "putty": "colors-putty.reg",
"rofi": "colors-rofi.Xresources", "rofi": "colors-rofi.Xresources",

View File

@ -91,7 +91,7 @@ def set_wm_wallpaper(img):
def set_desktop_wallpaper(desktop, img): def set_desktop_wallpaper(desktop, img):
"""Set the wallpaper for the desktop environment.""" """Set the wallpaper for the desktop environment."""
desktop = str(desktop).lower() desktop = str(desktop).lower()
if "xfce" in desktop or "xubuntu" in desktop: if "xfce" in desktop or "xubuntu" in desktop:
xfconf(img) xfconf(img)
@ -125,8 +125,7 @@ def set_desktop_wallpaper(desktop, img):
d.writeConfig("Image", "%s")}; d.writeConfig("Image", "%s")};
""" """
util.disown(["qdbus", "org.kde.plasmashell", "/PlasmaShell", "org.kde.PlasmaShell.evaluateScript", util.disown(["qdbus", "org.kde.plasmashell", "/PlasmaShell", "org.kde.PlasmaShell.evaluateScript",
string % img]) string % img])
else: else:
set_wm_wallpaper(img) set_wm_wallpaper(img)