Install the .desktop file, if necessary

I used this packaging to install IntelliJ on a fairly vanilla Ubuntu
install (with Unity) and found that Unity doesn't recognize the
installation of a new .desktop file to /usr/share/applications unless
`desktop-file-install` is used.
This commit is contained in:
Patrick Lucas 2017-01-02 13:10:17 -05:00
parent 99547aafcc
commit da7d15e541
1 changed files with 5 additions and 0 deletions

View File

@ -12,3 +12,8 @@ sudo rm /opt/ideaIC-*
## Make /usr/bin usable
sudo mv /usr/bin/intellij-idea-community.sh /usr/bin/intellij-idea-community
## Install the .desktop file, if necessary
if [ -x "/usr/bin/desktop-file-install" ]; then
sudo /usr/bin/desktop-file-install /usr/share/applications/intellij-idea-community.desktop
fi