Today at 4:20pm, Tony Vance said: >I got a cool python script from my professor that goes to NASA's >astronomy picture of the day, downloads it, and then uses ImageMagick to >resize it and composite it with a black background. Very cool. I've >attached it for those who are interested. > > However, my Gnome desktop won't reread the desktop back file >automatically, so I have to manually select the new image again for the >new image file to be displayed. Is there a way in Gnome or KDE to >automatically reread the desktop background file when it is changed?
I don't use KDE or Gnome, but I have a changing background too. If there's a command line program to change your background, then this should work for you too. Here, I'll call that program setroot, and assume it takes the image as an argument. Say your file goes into ~/.images/background.jpg, and that your python script runs at 12:01am daily. Just after your python runs, set up a cron job (maybe 12:02am?) to run something like this: > setroot ~/.images/background.jpg I think you'll have to give it the hint that the background image changed... it won't keep watching the file for changes. If you want, you could make a cron job that just checked for changes every five minutes, and reran the setroot program as needed. Mac -- Mac Newbold MNE - Mac Newbold Enterprises, LLC [EMAIL PROTECTED] http://www.macnewbold.com/ ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
