Friday, January 18, 2008

Cover-art Wallpaper under Ubuntu

This is an update to the previous post to create a cover art "stack" for Windows XP wallpaper to generate and update the wallpaper in Ubuntu.

Not much had to change, except the setWallpaper function:

def setWallpaper( bmp ):
    os.system( "gconftool-2 -t string -s /desktop/gnome/background/picture_filename %s" % bmp.replace(" ","\\ ") )


Will said...

wow thats awesome i would love to be able to do that in windows

Tom said...

This was actually an update for Ubuntu of the windows version.

Will said...

thanks tom may have a little bash at having a go at this its great but all my album art is in jpegs normally

Tom said...

It is only the final desktop wallpaper image that has to be in BMP format for windows to accept it. The cover art images (or photos or whatever) can be in any format that the Python Imaging Library (PIL) understands, which is pretty much everything (GIF, JPG, BMP, PNG, TIF, ...)