From 2be3bfb6a14c0b9e8d813b55d1f3174d36cedbf9 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 27 May 2014 00:26:23 +0200 Subject: [PATCH] Used modified picture as wallpaper --- DE-env.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 -- 2.39.5