Skip to content

Commit

Permalink
Desktop: Fix icon path and directory in Linux install script (#1612)
Browse files Browse the repository at this point in the history
  • Loading branch information
gusbemacbe authored and laurent22 committed Jun 5, 2019
1 parent 409bdd7 commit 172a98f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Joplin_install_and_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ if [[ ! -e ~/.joplin/VERSION ]] || [[ $(< ~/.joplin/VERSION) != "$version" ]]; t

# Download icon
echo 'Downloading icon...'
wget -nv -O ~/.joplin/Icon512.png https://joplinapp.org/images/Icon512.png
mkdir -p ~/.local/share/icons/hicolor/512x512/apps
wget -nv -O ~/.local/share/icons/hicolor/512x512/apps/joplin.png https://joplinapp.org/images/Icon512.png
echo "${COLOR_GREEN}OK${COLOR_RESET}"

# Detect desktop environment
Expand All @@ -83,7 +84,7 @@ if [[ ! -e ~/.joplin/VERSION ]] || [[ $(< ~/.joplin/VERSION) != "$version" ]]; t

# On some systems this directory doesn't exist by default
mkdir -p ~/.local/share/applications
echo -e "[Desktop Entry]\nEncoding=UTF-8\nName=Joplin\nComment=Joplin for Desktop\nExec=/home/$USER/.joplin/Joplin.AppImage\nIcon=/home/$USER/.joplin/Icon512.png\nStartupWMClass=Joplin\nType=Application\nCategories=Application;\n$APPIMAGE_VERSION" >> ~/.local/share/applications/appimagekit-joplin.desktop
echo -e "[Desktop Entry]\nEncoding=UTF-8\nName=Joplin\nComment=Joplin for Desktop\nExec=/home/$USER/.joplin/Joplin.AppImage\nIcon=joplin\nStartupWMClass=Joplin\nType=Application\nCategories=Application;\n$APPIMAGE_VERSION" >> ~/.local/share/applications/appimagekit-joplin.desktop
echo "${COLOR_GREEN}OK${COLOR_RESET}"
else
echo "${COLOR_RED}NOT DONE${COLOR_RESET}"
Expand Down

0 comments on commit 172a98f

Please sign in to comment.