Creating desktop menu items for Intellij IDEA in Linux

Answered

Edit: Doh. I just noticed in the Welcome screen (for IDEA and PyCharm) that "Create Desktop Entry" is an option.

I recently installed the SmartGit/Hg client from Syntevo and noticed they included two scripts in the bin directory:


1. add-menuitem.sh
2. remove-menuitem.sh


which add/remove a Desktop menu item, under the Programming category.


I have adapted these two scripts to do the same for Intellij IDEA. They are attached to this post.
I have also attached a screenshot to show you the result.


Instructions:

  1. Copy the two attached scripts to the /path/to/your/intellij-idea/bin directory
  2. cd /path/to/your/intellij-idea/bin
  3. chmod +x *menuitem.sh
  4. cp idea.png jetbrains-idea.png
  5. ./idea-add-menuitem.sh



Note: the xdg* programs (in the script) require a "vendor" prefix (unless you specify "--novendor"). That's why I've added "jetbrains-" where required.


Note: tested on LinuxMint 16 Cinnamon x64



Attachment(s):
intelli-idea-menu-linux.png
idea-remove-menuitem.sh
idea-add-menuitem.sh
5 comments
Comment actions Permalink

Thank you very much for providing these scripts. They're really helpfull.

Can confirm, it still works perfectly on Linux Mint 18.2 Sonya with IntelliJ Idea 2017.3.1 (Ultimate Edition)

 

 

0
Comment actions Permalink

Thank you, it still working perfectly. Manjaro - Gnome 17.1.1, Arch-linux with Intellij Idea 2017.3.3

0
Comment actions Permalink

Brilliant, thank you. Missing the menu in Arch was driving me nuts. Ran it on IntelliJ 2019.

0
Comment actions Permalink

worked on Linux Mint 19.1

0
Comment actions Permalink

Solved it by adding "/snap/bin" path to /etc/environment file without any file movings. 

0

Please sign in to leave a comment.