I wonder, isn't still there an easy way to create a desktop shortcut in Ubuntu 14.04 (or Unity)? There is no context menu on desktop doing this.
So I tried the following: I looked for an app I want to create a shortcut for in the dash, then I tried to drag it to the desktop. And guess what? I got the error:
In the case of application launchers, they're placed in /usr/share/applications/. The procedure is identical. We have several shortcut editor applications if you want advanced functionality, but I suspect the method above should suffice?
When we discover bugs in Ubuntu and we would like them to be fixed, we report them to the developers. This is done on http://Launchpad.net.
Try to press Ctrl and Shift (I have used left ones) together when drag'n'dropping app or folder to desktop ;-)
I find this works:
/usr/share/applications
Done!
The above answers all assume that the desktop file is in /usr/share/applications, but sometimes it is not the case. So I posted my answer in case these answers do not work.
Usually when running the application or package you have installed, the icon of the application will appear in the launcher. That is to say, ubuntu has already automatically created a desktop file for the application. All you need to do is to find it and copy it to the desktop. More often than not it is in /usr/share/applications, as assumed by all other answers to this question, but sometimes it is in ~/.local/share/applications, or elsewhere you have no idea about. In the following I will add an icon for Qt Creator which is not in /usr/share/applications by default to the desktop to illustrate this method.
(1) After installation of Qt, run Qt Creator.
(2) Locate the path to the executable. This can be done by search the list of System Monitor in the Processes tab for the particular process for that application and view the process property.
(3) Record the path, say,
/home/zh/Qt/Tools/QtCreator/bin/qtcreator
for Qt Creator. Search the disk for desktop file containing this path using commandsudo find / -name "*.desktop"|xargs grep /home/zh/Qt/Tools/QtCreator/bin/qtcreator
. You will get "/home/zh/.local/share/applications/DigiaQt-qtcreator-community.desktop".(4) Copy that desktop file to ~/Desktop, then you are all set.
An totally non-obvious way to create a shortcut anyway:
/
in the address bar and press Enter).usr
.share
.applications
./usr/share/applications
, look in subdirectories or~/.local/share/applications/
.It is ridiculous how involved the steps are just to get a desktop icon for an application. The following approaches were tried and did not work:
I am a KDE user, but recommended a peer student to try Ubuntu (with Unity). Hopefully this is the last surprise, but I have my reservations about that.
I was facing the same problem but mine was matlab app. This is how I did it.
NOTE: replace application name with the of the application you installed. hope this helps.
I like this procedure: Desktop shortcut to create a new desktop shortcut doesn't do anything
Short answer:
then put your name and command in dialog to create on desktop your brand new launcher!!
p.s.: first command is not necessary if you already have gnome-desktop-item-edit
p.s.2.: other answers created software links and/or copied files as .desktop files, this approach will create a brand-new .desktop file
You can navigate to /usr/share/applications
with Terminal then enter
It will open a file explorer with admin right. Without "sudo" the "Create link" was greyed out.
If you want to create a launcher from a shell script using a GUI
sudo apt-get install alacarte && alacarte
EDIT: Alacarte seems to be deprecated. Prefer arronax
This is the same as Jo-Erlend Schinstad's answer above but it's the Terminal command.