File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,11 @@ simple_install_f() {
7676 mkdir -p ~ /.local/share/applications
7777 cp " ${TMP_DIR} /${RESOURCE_NAME} .desktop" ~ /.local/share/applications/
7878
79+ # Create desktop icon if dir exists
80+ if [ -d ~ /Desktop ]; then
81+ cp " ${TMP_DIR} /${RESOURCE_NAME} .desktop" ~ /Desktop/
82+ fi
83+
7984 # Clean up
8085 rm " ${TMP_DIR} /${RESOURCE_NAME} .desktop"
8186 rmdir " $TMP_DIR "
@@ -129,6 +134,14 @@ simple_uninstall_f() {
129134 rm ~ /.local/share/applications/${RESOURCE_NAME} .desktop
130135 fi
131136
137+ if [ -f ~ /Desktop/arduino.desktop ]; then
138+ rm ~ /Desktop/arduino.desktop
139+ fi
140+
141+ if [ -f ~ /Desktop/${RESOURCE_NAME} .desktop ]; then
142+ rm ~ /Desktop/${RESOURCE_NAME} .desktop
143+ fi
144+
132145}
133146
134147# Update desktop file and mime databases (if possible)
You can’t perform that action at this time.
0 commit comments