From 466cd836d7d5cd680af0c49f4fb26d940af74bf3 Mon Sep 17 00:00:00 2001 From: Robin Opletal <49439044+fourstepper@users.noreply.github.com> Date: Wed, 13 Jan 2021 21:50:32 +0100 Subject: [PATCH] Add support for the sway desktop environment (#4357) Many sway users set $XDG_CURRENT_DESKTOP to sway. This could be detected. --- Joplin_install_and_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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