瀏覽代碼

Remove the symlink before we create it #systemd

Colin Powell 5 年之前
父節點
當前提交
7b81e8cbab
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      systemd/.config/systemd/user/changepaper.sh

+ 1 - 0
systemd/.config/systemd/user/changepaper.sh

@@ -24,6 +24,7 @@ then
         #set the current image as wallpaper
 	feh --bg-scale $BASEDIR/$img_md5.jpg
 	#link slim background to new image
+	rm /usr/share/slim/themes/default/background.jpg
 	ln -s $BASEDIR/$img_md5.jpg /usr/share/slim/themes/default/background.jpg
 else
 	echo "No Wallpaper today"