desktops: split light/dark wallpapers in gnome + bianbu postinsts#905
Merged
Conversation
Contributor
WalkthroughThis change modifies the GNOME post-installation configuration script to write an additional dconf setting. A new Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
4d17940 to
ab27d14
Compare
GNOME 42+ added 'picture-uri-dark' for the desktop background; when the system is in dark appearance (default on Ubuntu resolute / GNOME 47+), the shell reads that key and falls back to the schema default if unset, ignoring 'picture-uri' entirely. The Armbian dconf seed only set 'picture-uri', which is why noble (GNOME 46, more lenient) shows the wallpaper but resolute does not. Mirror the same Armbian image into 'picture-uri-dark' so it sticks regardless of the appearance setting.
ab27d14 to
6ee72e0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Armbian wallpaper does not show up on Ubuntu resolute (GNOME 47+) GNOME builds, while it does on noble (GNOME 46). Cause: GNOME 42+ added
picture-uri-darkfororg.gnome.desktop.background. When the session runs in dark appearance (default on resolute, and the default on Bianbu too), the shell readspicture-uri-dark, ignorespicture-uri, and falls back to the schema default ifpicture-uri-darkis unset. The Armbian dconf seeds ingnome.shandbianbu.shonly setpicture-uri.Noble's GNOME 46 happens to fall back to
picture-urimore leniently, which is why the regression only surfaced once resolute landed.Fix
In both gnome.sh and bianbu.sh, set both keys to the matching variants Armbian already ships under
/usr/share/backgrounds/armbian/:picture-uri→armbian18-Dre0x-Minum-light-3840x2160.jpgpicture-uri-dark→armbian03-Dre0x-Minum-dark-3840x2160.jpgGNOME tracks the user's appearance setting and picks the matching one. The screensaver block doesn't change —
org.gnome.desktop.screensaverhas no-darkvariant; the dark image stays the right default for the lock screen.Test plan
gsettings set org.gnome.desktop.background picture-uri \ 'file:///usr/share/backgrounds/armbian/armbian18-Dre0x-Minum-light-3840x2160.jpg' gsettings set org.gnome.desktop.background picture-uri-dark \ 'file:///usr/share/backgrounds/armbian/armbian03-Dre0x-Minum-dark-3840x2160.jpg'