From 9d9f3a7c4f205b0108f6660ec5cf8a3e5747bc91 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Sun, 31 Oct 2021 15:02:46 -0400 Subject: [PATCH] changed ~/ with |path| --- LDM-Wallpaper.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/LDM-Wallpaper.sh b/LDM-Wallpaper.sh index 2f2a630..49592ab 100755 --- a/LDM-Wallpaper.sh +++ b/LDM-Wallpaper.sh @@ -1,8 +1,7 @@ #!/bin/sh -image=$(find -L ~/Pictures/Wallpapers/ -type f | shuf -n1); -sudo cp "$image" /usr/share/wallpapers/lightdm/; +image=$(find -L /home/linux/Pictures/Wallpapers/ -type f | shuf -n1); +cp "$image" /usr/share/wallpapers/lightdm/; cd /usr/share/wallpapers/lightdm; filename=${image##*/}; echo $filename; -sleep 3; -sudo mv -f "$filename" wallpaper; +mv -f "$filename" wallpaper;