diff --git a/intellij-idea-community_2016.3.2/debian/postinst b/intellij-idea-community_2016.3.2/debian/postinst index d447a3e..6de0f8b 100644 --- a/intellij-idea-community_2016.3.2/debian/postinst +++ b/intellij-idea-community_2016.3.2/debian/postinst @@ -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