Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora Silverblue / immutable distro disallows writing in usr path #44

Open
basings opened this issue Oct 25, 2023 · 3 comments
Open

Fedora Silverblue / immutable distro disallows writing in usr path #44

basings opened this issue Oct 25, 2023 · 3 comments

Comments

@basings
Copy link

basings commented Oct 25, 2023

An immutable distro (in my case fedora silverblue) does not allow writing in

Following solution as suggested by r/chrisawi on reddit
sed -i 's|/usr|/usr/local|g' install.sh Dynamic_Wallpapers/*.xml xml/*.xml
such that the install script becomes

#!/bin/bash
if [[ -d /usr/local/share/backgrounds/Dynamic_Wallpapers ]]
then 
	sudo rm -r /usr/local/share/backgrounds/Dynamic_Wallpapers
	echo "Cleaning up"
fi

echo "Installing wallpapers..."
sudo mkdir -p /usr/local/share/backgrounds/
sudo mkdir -p /usr/local/share/gnome-background-properties/ 
sudo cp -r $(pwd)/Dynamic_Wallpapers /usr/local/share/backgrounds/Dynamic_Wallpapers
sudo cp $(pwd)/xml/* /usr/local/share/gnome-background-properties/
echo "Wallpapers has been installed. Enjoy setting them as your desktop background!"
@basings basings changed the title Fedora Silverblue / mmutable distro disallows writing in usr path Fedora Silverblue / immutable distro disallows writing in usr path Oct 25, 2023
@wolf-yuan-6115
Copy link

wolf-yuan-6115 commented Nov 11, 2023

It's possible to install at ~/.local/share/backgrounds too

@linuxmobile
Copy link

It's possible to install at ~/.local/share/backgrounds too

Not working on Nixos and Gnome 45

@wolf-yuan-6115
Copy link

It's possible to install at ~/.local/share/backgrounds too

Not working on Nixos and Gnome 45

I remember NixOS works differently, the first approach might work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants