How to add my application to Ubuntu quick launch

I am writing a java application and getting a jar file, it works from the command line

java -jar program.jar 

I want to write an installer to put my application in Unity Launcher (quicklaunch) in Ubuntu.

can someone give me how i can start?

+4
source share
1 answer

create a simple .desktop file in ~ / .local / share / applications /

vim ~/.local/share/applications/application_name.desktop

add these entries to the file

[Desktop Login]
Name = your application name
Comment =
Exec = java -jar program.jar
Icon = / path / to / icon
Terminal = false
Type =
Application StartupNotify = true

you will need to exit and return for the changes to take effect.

+6
source

Source: https://habr.com/ru/post/1493970/


All Articles