If gnome-appearance-properties is opened and closed, without ever selecting the Backgrounds tab, ~/.gnome2/backgrounds.xml is overwritten with an empty XML structure, essentially erasing the file. This happens because the file is only loaded when the tab is realized (shown), but it is always written on exit. The backgrounds.xml should only be written if it was actually loaded. Reproducible: Always Steps to Reproduce: 1. Open gnome-appearance-properties 2. Add some custom wallpapers to the Backgrounds tab 3. Close gnome-appearance-properties 4. Check ~/.gnome2/backgrounds.xml 5. Open gnome-appearance-properties 6. Close gnome-appearance-properties Actual Results: ~/.gnome2/backgrounds.xml contains: <?xml version="1.0"?> <!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd"> <wallpapers/> Expected Results: ~/.gnome2/backgrounds.xml should be unchanged from step 4 I see this behavior in GNOME 2.32, 2.30, and probably earlier versions too. I wrote a quick hack for 2.32 that seems to do the trick. This patch also applies to 2.30 without problem (1 line fuzz on the first hunk), but I haven't tried actually building and testing it.
Created attachment 253361 [details, diff] Only write to ~/.gnome2/backgrounds.xml if it was loaded
Reproduced the problem, confirmed that your patch solves this and reported to upstream: https://bugzilla.gnome.org/show_bug.cgi?id=634156 Thanks a lot
Since there doesn't look to be a whole lot of activity upstream, will this get included in Gentoo's release? It'd be nice to have this fixed for stabilization.
(In reply to comment #3) > Since there doesn't look to be a whole lot of activity upstream, will this get > included in Gentoo's release? It'd be nice to have this fixed for > stabilization. > Will wait for any more experienced gnome team member opinion before trying to use it :-|
+*gnome-control-center-2.32.1-r1 (27 Mar 2011) + + 27 Mar 2011; Pacho Ramos <pacho@gentoo.org> + -files/gnome-control-center-2.28.1-gdm-default-bg.patch, + -gnome-control-center-2.30.1.ebuild, +gnome-control-center-2.32.1-r1.ebuild, + +files/gnome-control-center-2.32.1-duplicated-background.patch, + +files/gnome-control-center-2.32.1-erase-background.patch, + +files/gnome-control-center-2.32.1-mime-handler.patch, + +files/gnome-control-center-2.32.1-mime-handler2.patch, + +files/gnome-control-center-2.32.1-mime-handler3.patch: + Revision bump using URL handlers for browser and mailer applications to be + compatible with glib-2.28, not showing twice the configured background if it + is a symlink to a known background, not erasing backgrounds.xml under some + circumstances (bug #344335 by Matthew Turnbull). Remove old. +