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)
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