saint-13 / Linux_Dynamic_Wallpapers

Dynamic Wallpapers for Linux
742 stars 61 forks source link

Adding some fixes for the install script #24

Closed BalanAlexandru closed 2 years ago

BalanAlexandru commented 2 years ago

First commit fixes a functionality error. If the directories do not exist when running the script then the wallpapers are not linked to the right destination.

The second fixes an aesthetic problem, when running the script at a later date you'll get an error about the file already existing at the destination. Excerpt below:

ln: failed to create symbolic link '/usr/share/gnome-background-properties/TheBeach.xml': File exists
ln: failed to create symbolic link '/usr/share/gnome-background-properties/TheDesert.xml': File exists
ln: failed to create symbolic link '/usr/share/gnome-background-properties/TheLake.xml': File exists
ln: failed to create symbolic link '/usr/share/gnome-background-properties/TokyoStreet.xml': File exists
ln: failed to create symbolic link '/usr/share/gnome-background-properties/Truchet.xml': File exists
ln: failed to create symbolic link '/usr/share/gnome-background-properties/UbuntuMinimal.xml': File exists
ln: failed to create symbolic link '/usr/share/gnome-background-properties/Viragegy.xml': File exists
ln: failed to create symbolic link '/usr/share/gnome-background-properties/Viragharom.xml': File exists
ln: failed to create symbolic link '/usr/share/gnome-background-properties/Viragnegy.xml': File exists
ln: failed to create symbolic link '/usr/share/gnome-background-properties/WaterHill.xml': File exists