A bash script to create "Desktop Background" gallery xml files now available

G.Wolfe Woodbury redwolfe at gmail.com
Tue Oct 23 08:35:51 UTC 2012

  I've written a bash script to turn a directory, directory tree, or
list of files into an XML file suitable for use with the "Desktop
Background" gallery construct in GNOME.

  I could not find one @GNOME.org or freedesktop.org, so I wrote one for
myself based on the "Cosmos" gallery definition and some experimenting.

  I haven't yet found what program or library is handling the decoding
of this XML file (nor what draws the desktop background actually) so I
can't be sure that I fully handle all the DTD options.  Any pointers on
where to find the specification(s) are appreciated.

  I've been running it under GNOME 3.4.2 for a couple of weeks now and
it seems solid enough.  Some of the other options that I suspect should
be available in the DTD/XML (such as "scale" vs. "stretch" etcetera) can
be set via dconf-editor or GNOME Control Center.

  It has been quite a while since I've done much programming, and this
is the first thing I'm throwing into the Fedora Project and GNOME
waters. (Be gentle in your criticisms please.)

  The script is to be found at:


There is a fairly detailed -h option, and it is commented throughout.

TODO: add an option to automatically "shuffle" the image file list
before writing the output.  write a man page and texinfo file.  make a
real Fedora package for the thing.

  Have at it people.

Gregory "Wolfe" Woodbury
FAS: redwolfe
redwolfe at gmail.com

More information about the devel mailing list