1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Add joplin.desktop file for xfce and mate desktops (#1304)

This commit is contained in:
Caleb John 2019-03-08 10:33:15 -07:00 committed by Laurent Cozic
parent 5bf879c2d9
commit e34e49b88d

View File

@ -70,11 +70,13 @@ if [[ ! -e ~/.joplin/VERSION ]] || [[ $(< ~/.joplin/VERSION) != "$version" ]]; t
# Create icon for Gnome
echo 'Create Desktop icon.'
if [[ $desktop =~ .*gnome.* ]] || [[ $desktop =~ .*kde.* ]]
if [[ $desktop =~ .*gnome.*|.*kde.*|.*xfce.*|.*mate.* ]]
then
echo -e "[Desktop Entry]\nEncoding=UTF-8\nName=Joplin\nExec=/home/$USER/.joplin/Joplin.AppImage\nIcon=/home/$USER/.joplin/Icon512.png\nType=Application\nCategories=Application;" >> ~/.local/share/applications/joplin.desktop
echo "${COLOR_GREEN}OK${COLOR_RESET}"
else
echo "${COLOR_RED}NOT DONE${COLOR_RESET}"
fi
echo "${COLOR_GREEN}OK${COLOR_RESET}"
#-----------------------------------------------------
# Finish