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

pull/1316/head
Caleb John 2019-03-08 10:33:15 -07:00 committed by Laurent Cozic
parent 5bf879c2d9
commit e34e49b88d
1 changed files with 4 additions and 2 deletions

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