From: Frank Brehm Date: Mon, 26 May 2014 22:26:23 +0000 (+0200) Subject: Used modified picture as wallpaper X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=2be3bfb6a14c0b9e8d813b55d1f3174d36cedbf9;p=my-stuff%2Fpython.git Used modified picture as wallpaper --- diff --git a/DE-env.py b/DE-env.py index dd3340b..63716d0 100755 --- a/DE-env.py +++ b/DE-env.py @@ -413,9 +413,7 @@ gsettings = Gio.Settings.new(SCHEMA) cur_wpaper = gsettings.get_string(KEY) log.debug("Current Wallpaper: %r.", cur_wpaper) -log.debug("Setting Wallpaper to: %r.", wpaper) -if os.path.exists(wpaper) and os.path.isfile(wpaper): - gsettings.set_string(KEY, wpaper) +log.debug("New Wallpaper: %r.", wpaper) title = os.path.basename(wpaper) title = re.sub(r'\.[^\.]*$', '', title) @@ -505,4 +503,10 @@ draw(new_img) new_img.save(filename = new_img_fname) +#log.debug("Setting Wallpaper to: %r.", wpaper) +#if os.path.exists(wpaper) and os.path.isfile(wpaper): +# gsettings.set_string(KEY, wpaper) +log.debug("Setting Wallpaper to: %r.", new_img_fname) +gsettings.set_string(KEY, new_img_fname) + # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4