I keep all my documents on a separate drive from my ubuntu installation, and I have a folder full of nice wallpapers on that drive. How can I make ubuntu automatically search this directory so wallpapers show up in the wallpaper changer dialogue, reached from right clicking on the desktop and selecting Change Desktop Wallpaper?
Edit: I've tried putting a symlink in the /usr/share/backgrounds folder to the other drive and that didn't work.
Best Answer
* EDIT - Second try - and apologies immediately for all the terminal work - hopefully this should just be copying and pasting the highlighted entries*
the folder that holds the details of the gnome wallpapers is called /usr/share/gnome-background-properties/ubuntu-wallpapers.xml
You could edit that file to have wallpaper.../wallpaper sub-sections pointing to your new folder & wallpaper files
Below is a script amended from this forum entry which will regenerate the ubuntu-wallpapers.xml file automatically for a folder containing .png and .jpg files.
copy and paste the contents into a new text file called "ubuntu-wallpaper-generator"
Then execute the file with the syntax
This will generate a file called ubuntu-wallpapers.xml in the same folder as where you are running this script.
Safely backup you current xml file i.e.
the copy in the newly generated file
Here is that script file I referred to: