diff --git a/Joplin_install_and_update.sh b/Joplin_install_and_update.sh index ac94647ee..6f5c15f6a 100755 --- a/Joplin_install_and_update.sh +++ b/Joplin_install_and_update.sh @@ -162,7 +162,7 @@ DESKTOP=${DESKTOP,,} # convert to lower case #----------------------------------------------------- echo 'Create Desktop icon...' -if [[ $DESKTOP =~ .*gnome.*|.*kde.*|.*xfce.*|.*mate.*|.*lxqt.*|.*unity.*|.*x-cinnamon.*|.*deepin.*|.*pantheon.*|.*lxde.*|.*i3.* ]] +if [[ $DESKTOP =~ .*gnome.*|.*kde.*|.*xfce.*|.*mate.*|.*lxqt.*|.*unity.*|.*x-cinnamon.*|.*deepin.*|.*pantheon.*|.*lxde.*|.*i3.*|.*sway.* ]] then # Only delete the desktop file if it will be replaced rm -f ~/.local/share/applications/appimagekit-joplin.desktop