How to add my application to quick launch Ubuntu
Asked Answered
B

1

6

I write java application and get the jar file, it work from command line

java -jar program.jar

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

can anyone give my how can I start?

Bethlehem answered 28/7, 2013 at 20:46 Comment(2)
Using the same method as you would for any executable command.Lecroy
have a look here #2016392Obrian
G
11

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

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

add these entries to file

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

you will need to log off and back in for the change to take effect.

Grandchild answered 28/7, 2013 at 21:31 Comment(1)
I execute chmod +x ~/.local/share/applications/application_name.desktop and i don't need to log offHomelike

© 2022 - 2024 — McMap. All rights reserved.