saint-13 / Linux_Dynamic_Wallpapers

Dynamic Wallpapers for Linux
814 stars 70 forks source link

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

Open basings opened 11 months ago

basings commented 11 months ago

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!"
wolf-yuan-6115 commented 10 months ago

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

linuxmobile commented 5 months ago

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

Not working on Nixos and Gnome 45

wolf-yuan-6115 commented 5 months ago

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