Desktop shortcut to create a new desktop shortcut doesn't do anything
Solution 1
To create Desktop shortcuts in Ubuntu,gnome-panel package is required first.
Open Terminal. To open terminal click the Dash home from Unity launcher. And type terminal in the search field. And click Terminal.
Type the below code in terminal and hit enter.
sudo apt-get install --no-install-recommends gnome-panel
Then type below code in terminal and hit enter
gnome-desktop-item-edit ~/Desktop/ --create-new
The create launcher window will pop-up,Type application name in the name field and type application name or path or browse in the command field. And click OK button.
Example: CinePaint
Now check your desktop for the shortcut.
If you want your shortcut to appear in the Unity launcher panel (the pop-out one on the left), you can drag it there from the desktop.
Solution 2
The following line is the culprit:
Exec=/usr/bin/gnome-desktop-item-edit ~/Desktop/ --create-new
The user HOME path ~
will not be expanded in a .desktop file. Please use to full path to get it working:
Exec=/usr/bin/gnome-desktop-item-edit /home/<user>/Desktop/ --create-new
Solution 3
Found it utterly simple to create shortcuts (on your desktop or anywhere else) in Ubuntu 12.04:
- Right click on the file or folder
- Click on "Make Link"
- A link will get created (folder icon with a curvy arrow)
- Cut/copy and paste the link wherever you choose to
I have seen that this works as well for executables / programs.
Solution 4
My experience with 12.04 in this respect is utterly weird. First of all, when I "upgraded" from 10.04 to 12.04, most of the previous desktop icons survived the transition and worked. The old Open Office icons were there, but did not work because the programs had been removed in the course of the upgrade.
For some programs, such as Calculator, I find that I can just drag the icon from the Dash to the desktop, and it works right away. For others, such as all of the Libre Office programs, the dragged item does not work but gives a message of "broken link." There is no possibility of fixing it, because when you right-click it and look at the Properties, you cannot edit the command field.
The suggestion to find the application in /usr/share/applications and use "Make link" never worked for me because "Make link" was gray on all the icons I looked at. Dragging or copying from this directory also produced "broken link" messages.
How to get good desktop shortcuts for ALL installed programs -- shortcuts that both work right and look right -- is still for me an open question.
I was able to get working icons for these programs by (a) noting down the "command" found by right-clicking on the icon in /usr/share/applications and selecting Properties, and then (b) using the gnome-desktop-item-edit program in a terminal window to create the icon and then right-clicking on it, selecting Properties, and editing the Command field to show the command noted in step (a). This process gives a working icon, but it does not have the proper picture. Rather, the picture is always just the Gnome footprint symbol.
Solution 5
The simplest answer is this: drag the software icon to the desktop, right-click on it and select Properties → Permissions tab → check mark the "Allow to Execute" (or something like that) checkbox. Voila.
Related videos on Youtube
David M. Karr
Updated on September 18, 2022Comments
-
David M. Karr over 1 year
It's weird that creating desktop shortcuts is currently so primitive.
I found the following: Create Shortcut / launcher on Desktop in Ubuntu 12.04
That helps. However, if there's something wrong with the shortcut, it just doesn't do anything. For instance, I tried to create a shortcut for this command line to create a shortcut. When I double-click it, it just does nothing.
This is the resulting text of my "Create Desktop Shortcut.desktop" file on the desktop:
[Desktop Entry] Version=1.0 Type=Application Terminal=false Icon[en_CA]=gnome-panel-launcher Exec=/usr/bin/gnome-desktop-item-edit ~/Desktop/ --create-new Name[en_CA]=Create Desktop Shortcut Name=Create Desktop Shortcut Icon=gnome-panel-launcher
As I said, when I double-click this, or right-click it and select Open, nothing happens. Is there a log file where something about this would be written to?
-
drevicko almost 12 yearsnote that this only works for applications with a desktop file in
/usr/share/applications/
(eg: most apps installed with apt-get). You can, however, drag a.desktop
file from the desktop into the Unity launcher after creating it with eg mitch's instructions. -
pst007x almost 11 yearsThis no longer works when using smb// location of a network drive. I think it has something to do with the terrible new Nautilus. Do you know if there is an app out to create shortcuts to network locations, or has this now been abolished? Thanks
-
K D about 10 yearsThis is not a shortcut; it's a symbolic link. The command used in the background for this is
ln
.