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.
* 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:
With CreBS (Create Background Slideshow) you can create the XML files for wallpaper slideshows -- the fullpaths to the images are stored in the XML so no moving of files needed.
https://launchpad.net/crebs
http://www.obfuscatepenguin.net/crebs/
heres an update:
I faced the same problem, and I wrote a python script to edit a custom xml file that can be placed in
/usr/share/gnome-background-properties/my-backgrounds.xml
. It's on GitHub.Example usage:
To add
space_galaxy.jpeg
andfuzz_dog.png
to the xml file:Note that the default xml file is at
/usr/share/gnome-background-properties/my-backgrounds.xml
(this is where GNOME watches for the xml's). To specify an alternative xml file, use the-x
option:To remove entries from the xml file use the
-r
option:This works with GNOME 3.6 and Python 3.3
This is how I do it.
Right click on the Desktop > Change Background.
Click Add on the Background Tab.
Go into the folder, and select all the wallpapers, by clicking on one, and pressing Ctrl + A.
They should be now displayed in the chooser. I am also trying to find a small app that I had used, to automatically change the wallpaper. Ill post when I find it.I found one called Wally, and its highly recommended, but I remember I hadnt used that one. Anyway, you can install it by typing
sudo apt-get install wally
in a terminal.
To show the wallpapers in the selector, without having to manually update the folder, you will have to add them to
/usr/share/backgrounds
.I also was able to list the wallpapers in the chooser, by creating a symlink in the folder.That might be helpful, because it may not always be convinient to add wallpapers to a folder owned by root everytime.