Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add my application to quick launch Ubuntu

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?

like image 487
Steve Avatar asked Jul 28 '13 20:07

Steve


People also ask

How do I add a shortcut to the launcher in Ubuntu?

In the file browser window that just opened, find an Application you wish to create a Launcher for on your desktop. Perform right click and Copy action. Then, right click on your desktop and press Paste . The last thing we need to do is right click on the newly created desktop shortcut and click on Allow Launching .

How do I launch the application launcher in Ubuntu?

Another way of launching an application is to press Alt + F2 , enter its command name, and then press the Enter key. For example, to launch Rhythmbox, press Alt + F2 and type 'rhythmbox' (without the single-quotes). The name of the app is the command to launch the program.


1 Answers

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.

like image 142
Vikas Sardana Avatar answered Oct 16 '22 14:10

Vikas Sardana