]> Frank Brehm's Git Trees - my-stuff/python.git/commitdiff
Minor changes
authorFrank Brehm <frank@brehm-online.com>
Sat, 17 May 2014 06:16:47 +0000 (08:16 +0200)
committerFrank Brehm <frank@brehm-online.com>
Sat, 17 May 2014 06:16:47 +0000 (08:16 +0200)
DE-env.py

index f9a4b6df8fec17d3338308225d5392d6f9e7ec0b..f4ca499605854e616061f5dc69134d6781af5eb9 100755 (executable)
--- a/DE-env.py
+++ b/DE-env.py
@@ -226,6 +226,7 @@ def get_home_dir():
 
 bg_dirs = [
     '/home/fbrehm/Bilder/Wallpaper',
+    '/home/frank/Bilder/bg',
     '/usr/share/backgrounds',
 ]
 
@@ -257,8 +258,8 @@ gsettings = Gio.Settings.new(SCHEMA)
 cur_wpaper = gsettings.get_string(KEY)
 
 print("Current Wallpaper: %r." % (cur_wpaper))
-if os.path.exists(wpaper) and os.path.isfile(wpaper):
-    print("Setting Wallpaper to: %r." % (wpaper))
-    gsettings.set_string(KEY, wpaper)
+print("Setting Wallpaper to: %r." % (wpaper))
+#if os.path.exists(wpaper) and os.path.isfile(wpaper):
+#    gsettings.set_string(KEY, wpaper)
 
 # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4