mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
Minor improvement for new Linux install.sh script
This commit is contained in:
parent
05654ba0aa
commit
c80555d62d
13
build/linux/dist/install.sh
vendored
13
build/linux/dist/install.sh
vendored
@ -76,6 +76,11 @@ simple_install_f() {
|
||||
mkdir -p ~/.local/share/applications
|
||||
cp "${TMP_DIR}/${RESOURCE_NAME}.desktop" ~/.local/share/applications/
|
||||
|
||||
# Create desktop icon if dir exists
|
||||
if [ -d ~/Desktop ]; then
|
||||
cp "${TMP_DIR}/${RESOURCE_NAME}.desktop" ~/Desktop/
|
||||
fi
|
||||
|
||||
# Clean up
|
||||
rm "${TMP_DIR}/${RESOURCE_NAME}.desktop"
|
||||
rmdir "$TMP_DIR"
|
||||
@ -129,6 +134,14 @@ simple_uninstall_f() {
|
||||
rm ~/.local/share/applications/${RESOURCE_NAME}.desktop
|
||||
fi
|
||||
|
||||
if [ -f ~/Desktop/arduino.desktop ]; then
|
||||
rm ~/Desktop/arduino.desktop
|
||||
fi
|
||||
|
||||
if [ -f ~/Desktop/${RESOURCE_NAME}.desktop ]; then
|
||||
rm ~/Desktop/${RESOURCE_NAME}.desktop
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
# Update desktop file and mime databases (if possible)
|
||||
|
Loading…
x
Reference in New Issue
Block a user