The shortcuts to our programs in Ubuntu are placed in the /usr/share/applications folder, which is the file ending with. Desktop. We can create our shortcuts in this folder and copy them to the desktop. Let's take an example of creating an Eclipse shortcut.
Cd/usr/share/applicationssudo vim eclipse.desktop
The contents of the Eclipse.desktop file are as follows, note: "Exec" isthe executable file location, "icon" is the location of the icons. Generally only need to modify these two information (of course, if it is a shortcut to other programs, name and comment also need to modify)
[Desktop entry]encoding=utf-8Name=eclipsecomment=Eclipse ideexec=/ home/taoey/mywork/java/eclipse/eclipseicon=/home/taoey/mywork/java/eclipse/icon.xpmTerminal= false starttupnotify=trueType=applicationcategories=application;development;
Linux (Ubuntu) Use journal------Add desktop shortcuts to Programs