intellij-idea-community/intellij-idea-community_2016.3.2/debian/postinst
Patrick Lucas da7d15e541 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.
2017-01-02 13:10:17 -05:00

19 lines
493 B
Bash

#!/bin/bash
cd /opt/
## Extract the package
sudo tar xf /opt/ideaIC-*
## Rename the directory
sudo mv /opt/idea-IC-* /opt/intellij-idea-community
## Remove the tar.gz package
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