How can I pre-set a wallpaper in GNOME?
How can I set a specific default GNOME wallpaper?
4 Replies
You could try packaging the wallpapers into a package, and than using a gsetting overwrite file to set it
example from my old Linux distribution: https://github.com/risiIndustries/risios-backgrounds
put this file in /usr/share/glib-2.0/schemas/00_(distroname).gschema.overide, although only keep the wallpaper settings. There's other settings for GNOME in here
https://github.com/risiIndustries/risi-settings/blob/main/00_risi.gschema.override
I'm sure you can also modify the Containerfiles to do this without making a package
Maybe have a look at how Bluefin does it right now. They create a bunch of files (XML and pure images) and just copy them when the image is built.
Then, as @pizzalovingnerd said, they set the
org.gnome.desktop.background
property in the gschema.Here is their gschema
https://github.com/ublue-os/bluefin/blob/main/system_files/silverblue/usr/share/glib-2.0/schemas/zz0-bluefin-modifications.gschema.override
GitHub
bluefin/system_files/silverblue/usr/share/glib-2.0/schemas/zz0-blue...
The next generation Linux workstation, designed for reliability, performance, and sustainability. - ublue-os/bluefin
And you can see their background files here as well
https://github.com/ublue-os/bluefin/tree/main/system_files/shared/usr/share/backgrounds
GitHub
bluefin/system_files/shared/usr/share/backgrounds at main · ublue-...
The next generation Linux workstation, designed for reliability, performance, and sustainability. - ublue-os/bluefin