From 98e9054eb02a961116075e81a84c691de99cc130 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Wed, 6 May 2020 19:28:26 -0400 Subject: [PATCH] Add Desktop icon where applicable. --- update-minetest-linux64.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update-minetest-linux64.sh b/update-minetest-linux64.sh index b4ca706..e5b001d 100755 --- a/update-minetest-linux64.sh +++ b/update-minetest-linux64.sh @@ -96,6 +96,9 @@ install_shortcut(){ echo "Icon=$_ICON" >> "$dest_icon" fi echo "Exec=$_EXEC" >> "$dest_icon" + if [ -d "$HOME/Desktop" ]; then + cp -f "$dest_icon" "$HOME/Desktop/$_DST_SHORTCUT_NAME" + fi if [ "@$enable_clear_icon_cache" = "@true" ]; then if [ -f "`command -v gnome-shell`" ]; then echo "Refreshing Gnome icons..."