Image 01
profile-image

levity

Marko Thiele
Wallpaper Clock Screenlet

Conky 73 comments

by Whise
Score 63.3%
May 20 2008
a dirty fix could look like this:

---
try:
# This is a slow operation!!!
self.image.save (self.mypath + '/wallpaper' + self.minute + '.png')
if self.black_workarround:
os.system ("mv -f "+self.mypath+"/wallpaper.working.png "+ self.mypath + '/wallpaper.png')
except:
pass
print "Point 4: " +str(datetime.now())
if self.xfce_workarround:os.system ("killall -USR1 xfdesktop &")
try:
os.system("gconftool-2 -t string -s /desktop/gnome/background/picture_filename " + self.mypath + '/wallpaper' + self.minute + '.png')
os.system("gconftool-2 -t string -s /desktop/gnome/background/picture_options " + self.gnome_wallpaper_option)
os.system("gconftool-2 -t bool -s /desktop/gnome/background/draw_background False")
os.system("gconftool-2 -t bool -s /desktop/gnome/background/draw_background True")
except:
pass
try:
if self.gnome_wallpaper_option == 'stretched':
kde_wall = 6
else:
kde_wall = 7
os.system("/usr/bin/dcop kdesktop KBackgroundIface setWallpaper " + self.mypath + "/wallpaper" + self.minute + ".png " + kde_wall)
except:
pass
---

someone might do it better... for me this works for now ;)

(lazy as I'am I skipped the delete thing thought :D) - Mar 23 2011