diff bing4desktop/bing4desktop.py @ 21:7f02682ff5ed

bing4desktop-0.240207-4
author prymula <prymula76@outlook.com>
date Wed, 07 Feb 2024 22:51:58 +0100
parents e7a6488c02b7
children 45b565b7b853
line wrap: on
line diff
--- a/bing4desktop/bing4desktop.py	Wed Feb 07 14:36:55 2024 +0100
+++ b/bing4desktop/bing4desktop.py	Wed Feb 07 22:51:58 2024 +0100
@@ -22,7 +22,7 @@
 import shutil
 import glob
 
-ver = "0.240207-3"
+ver = "0.240207-4"
 
 BING_URI_BASE = "http://www.bing.com"
 BING_WALLPAPER_PATH = "/HPImageArchive.aspx?format=js&idx=1&n=1&mkt=en-US"
@@ -104,7 +104,7 @@
                 except:
                     args = ["gsettings", "set", "org.cinnamon.desktop.background", "picture-uri", uri]
                     subprocess.Popen(args)
-            elif desktop_env=="mate":
+            elif desktop_env in ['mate', 'lightdm-xsession']:
                 try: # MATE >= 1.6
                     # info from http://wiki.mate-desktop.org/docs:gsettings
                     args = ["gsettings", "set", "org.mate.background", "picture-filename", "'%s'" % file_loc]