Skip to content

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

@basings

Description

@basings

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!"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions