I recently downloaded IntelliJ IDEA and start the app by running . idea.sh. The app appears in the launcher while I'm running it, but for some reason when I right click on it I don't get a 'Lock to Launcher' option like I do with other apps.How do I attach it to the launcher?Is it because I'm running a script and not an executable directly that disables that option?
Ubuntu / Unity attach script to Launcher
linux;ubuntu;unity;intellij
There looks to be 2 ways you can do this.Method #1: manually create .desktop fileYes you need to create a custom .desktop launcher for it. Here are the general steps:Create *.desktop file in /usr/local/share/applications (or /usr/share/applications depending upon your system).$ gksudo gedit <insert-path-to-new-file.desktop>Paste below text[Desktop Entry]Type=ApplicationTerminal=falseName=IntelliJ IDEAIcon=/path/to/icon/icon.svgExec=/path/to/file/idea.shEdit Icon= and Exec= and Name=. Also Terminal=True/false determines weather the terminal opens a window and displays output or runs in the background.Put the .desktop file into the Unity Launcher panel. For this step you'll need to navigate in a file browser to where the .desktop file is that you created in the previous steps. After locating the file, drag the file to the Unity Launcher bar on the side. After making doing this you may need to run the following command to get your system to recognize the newly added .desktop file.$ sudo update-desktop-databaseMethod #2: GUI methodInstead of manually creating the .desktop file you can summon a GUI to help assist in doing this.install gnome-panel$ sudo apt-get install --no-install-recommends gnome-panellaunch the .desktop GUI generator$ gnome-desktop-item-edit ~/Desktop/ --create-new                      ReferencesHow to add a shell script to launcher as shortcut