Double wallpaper-entries in appearance menu

Bug #934047 reported by Christoph Werthwein
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
New
Undecided
Unassigned
gnome-control-center (Ubuntu)
Triaged
Low
Unassigned

Bug Description

I've added a wallpaper to the /usr/share/backgrounds folder and added an entry for it in the /usr/share/gnome-background-properties/ubuntu-wallpapers.xml file. Since then, every wallpaper appears twice in the appearance menue.

tags: added: 12.04 appearance precise wallpaper
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/934047/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → gnome-control-center (Ubuntu)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you add your modified .xml to the bug?

Changed in gnome-control-center (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Christoph Werthwein (krissel) wrote :

Hi, here is a copy of the file. I've added the last entry for "Saturn Eclipse".

Revision history for this message
Sebastien Bacher (seb128) wrote :

what did you try to achieve by editing that file? getting the wallpaper listed or added to a slideshow or...?

Changed in gnome-control-center (Ubuntu):
status: Incomplete → New
Revision history for this message
Christoph Werthwein (krissel) wrote :

Hi Sebastien,

I simply wanted the wallpaper to be listed, because the new unity-greeter does not display user-wallpapers from the home folder.

Revision history for this message
Sebastien Bacher (seb128) wrote :

weird, I can't trigger the issue there, it behaves as it should...

Revision history for this message
Christoph Werthwein (krissel) wrote :

I've tried to reproduce it and it worked. Here are the steps:

1. Downloaded latest daily build of precise
2. Created a new VM in Virtualbox
3. Installed the image
4. Installed all updates
5. Dowloaded a random wallpaper (size 1024x768, VMs resolution)
6. copied image to /usr/share/backgrounds
7. copied the last entry in the ubuntu-wallpapers.xml file and changed name and path to file
8. checked appearance menue - All Wallpapers appear twice

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-control-center (Ubuntu):
status: New → Confirmed
Revision history for this message
Ali Najafi (alinajafi) wrote :

I have this problem too. After deleting the lines added to the ubuntu-wallpapers.xml, nothing changed. Even the added wallpaper remains there!

Revision history for this message
Ali Najafi (alinajafi) wrote :

I found a solution!

After backup the file, I edited the file "ubuntu-wallpapers.xml" and deleted some wallpapers listed randomly. Now, every image deleted from the list, is single in "Appearance" app. The others are still double!

Hope this comment to help finding real problem.

Revision history for this message
Freecore (softdreamter) wrote :

I found THE solution!

(thanks to Ali for his information in comment #10)

I had the same problem.

It appears to be that Ubuntu seeks for XML entrys in ALL the files in /usr/share/gnome-backgroud-properties directory, not only the xml files (you can even have a file named my-wallpapers.ogg but filled as XML with your pictures entrys and it will work). So it is not necesary to add the entrys in precise-wallpapers.xml file or in ubuntu-wallpapers.xml file, you can have your own file like my-wallpapers.xml.

- Now, why the pictures appears twice in the appearance menue?

It's because text editors like gedit creates backup files for every file you are changing (for my-wallpapers.xml it will create my-wallpapers.xml~). All you have to do is to remove all the backup files and you will have the appearance menu just like you wanted it.

PD: Text editors backup files are hidden by default, because of that one can no realize why the pictures appears twice. you can remove the backup files with sudo rm, or you can run nautilus as root and hit the "view hidden files" option.

Jeremy Bícha (jbicha)
Changed in gnome-control-center (Ubuntu):
status: Confirmed → Invalid
status: Invalid → Triaged
Mathew Hodson (mhodson)
tags: removed: 12.04 appearance
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.