12

Gogland was released as preview yesterday. And I, being new to Linux have problem making a launcher for it using .desktop file.

I have never created .desktop file before, and I am running Ubuntu 14.04

So, this is what I've got right now.

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec= cd /opt/Gogland/bin && ./gogland.sh
Name=Gogland
Comment=comment here
Icon=icon /opt/Gogland/bin/gogland.png

Permission is set to executable, and it is located in: ~/.local/share/applications

The problem is that I cannot seam to find the gogland in application launcher widget after reboot. To start a program I go to bin folder and execute gogland.sh

ivan marchenko
  • 293
  • 1
  • 3
  • 7

3 Answers3

20

You can try to create a desktop file similar to the rest of Jetbrains products, something like this:

[Desktop Entry]
Version=1.0
Type=Application
Name=Gogland
Icon=/opt/Gogland/bin/gogland.png
Exec="/opt/Gogland/bin/gogland.sh" %f
Comment=The Golang IDE
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-gogland

Anyway, Jetbrains IDE's usually comes with a builtin option to create launcher shortcut from its startup/initial screen. I think it's the best and simpler solution.

Builtin create shortcut

dgonzalez
  • 7,310
2

I don't have enough reputation to add a comment, so I'll create a new answer that is just an addition to the response from dgonzalez. With recent Jetbrains products, you can also go to the Tools menu and select 'Create Desktop Entry...' after that, you can load the product from the applications menu. You can also use the entry in that menu to pin the product to the panel.

apmac
  • 61
0

I used this link to install the toolbar and using this I install the latest 2020.3.1 version. Please note that the IDE tar file must be downloaded and extracted to /opt folder for the installation to work. Only difference is it install with the Desktop launcher.

https://www.jetbrains.com/help/go/installation-guide.html#toolbox