1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-02 12:47:41 +02:00

Add support for the sway desktop environment (#4357)

Many sway users set $XDG_CURRENT_DESKTOP to sway. This could be detected.
This commit is contained in:
Robin Opletal 2021-01-13 21:50:32 +01:00 committed by GitHub
parent b53e475f99
commit 466cd836d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,7 @@ DESKTOP=${DESKTOP,,} # convert to lower case
#----------------------------------------------------- #-----------------------------------------------------
echo 'Create Desktop icon...' 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 then
# Only delete the desktop file if it will be replaced # Only delete the desktop file if it will be replaced
rm -f ~/.local/share/applications/appimagekit-joplin.desktop rm -f ~/.local/share/applications/appimagekit-joplin.desktop