Order of backgrounds isn't logical
I'm currently working on the background selection for Fedora 36, and the selection grid looks like this: screenshot
The images are shown in the order that they are listed in the XML metadata for the backgrounds. What I can't work out is which order each XML file is read in. From what I'm seeing, the order is:
/usr/share/gnome-background-properties/adwaita.xml
/usr/share/gnome-background-properties/fedora-workstation-backgrounds.xml
/usr/share/gnome-background-properties/f36.xml
/usr/share/gnome-background-properties/blobs.xml
/usr/share/gnome-background-properties/brush-strokes.xml
/usr/share/gnome-background-properties/drool.xml
/usr/share/gnome-background-properties/libadwaita.xml
/usr/share/gnome-background-properties/truchet.xml
It's alphabetical, except for the two Fedora XMLs. Does anyone know how the order is determined?
In order to present a logically organised set of backgrounds, I think what we need is the ability to:
- Ensure that the default background appears in position 1
- Group the other backgrounds so they appear as sets
- Set the order of the sets
If we could at least figure out how the current order is set, that would be a good start.