I decided to switch from Kubuntu to Ubuntu. I downloaded the distribution and installed it. There was a question how to set up a launcher so that I could launch my programs quickly. At first it seemed simple, start the program from the console and then lock the application on the launcher. With some applications it has passed, but for example with Android Studio and Intellij Idea not. More precisely, they were locked in, but instead of an icon after closing the program, a question mark appears and on the next attempt to start they do not start. He began to dig on the Internet, they write there that you need to create an app.desktop file and put it in the directory

~/.local/share/applications 

Made the file such a file:

 [Desktop Entry] Encoding=UTF-8 Name=Android Studio Comment=Android Studio Icon=/opt/android-studio/bin/studio.png Exec=/opt/android-studio/bin/studio.sh Terminal=false Type=Application 

The button on the launcher did not appear. Are there any other ways to solve this problem or what am I doing wrong here?

  • How in Russian will be "launcher"? - edem
  • @edem to do with it? Launcher - in this context, the panel to run - plesser

1 answer 1

The file you created correctly. Only he adds not the launch button, but the application to the list of applications (the one that appears when you click Win ). Now you need to launch the application from there, and now its icon can be attached to the panel.
If the application in the list has not yet appeared, you may have to kick unity, but I don’t know how to do it, so I can only advise to re-log.

And by the way, the latest versions of Idea can add themselves to the application list ( Tools > Create Desktop Entry... ).

  • Thank! Now I understand! - plesser