Add user-level install script for immutable distributions#67
Open
lazydays79 wants to merge 2 commits intosaint-13:mainfrom
Open
Add user-level install script for immutable distributions#67lazydays79 wants to merge 2 commits intosaint-13:mainfrom
lazydays79 wants to merge 2 commits intosaint-13:mainfrom
Conversation
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.
Problem
The existing installation scripts (
install.sh,Easy_Install.sh,Interactive_Install.sh) all write to/usr/share, which is read-only onimmutable distributions such as Fedora Silverblue, Bazzite, and Vanilla OS.
This makes it impossible to install the wallpapers on those systems without
workarounds like
rpm-ostree overlayor similar.Solution
This PR adds a new script
install_user.shthat installs all wallpapersinto the user's home directory (
~/.local/share/) instead of/usr/share/.GNOME picks up wallpaper definitions from both locations, so the wallpapers
appear in Settings → Background exactly as with a system-wide installation.
Since all XML files contain hardcoded
/usr/share/backgrounds/Dynamic_Wallpaperspaths, the script rewrites every XML file on the fly using
sedbefore writingit to the destination — no pre-patched files are needed in the repository.
No
sudoor root access is required at any point.Changes
install_user.sh(new): Installs wallpapers into~/.local/share/backgrounds/Dynamic_Wallpapers/and picker XMLs into~/.local/share/gnome-background-properties/. All hardcoded/usr/sharepaths in both slideshow XMLs and picker XMLs are rewritten on the fly.
Supports
--uninstallto cleanly remove only the files placed by this script.README.md: Added Method 4 section documenting the new script,following the style of the existing installation methods.
Tested on