You can copy a file from /usr/share/applications to your desktop folder (~/Desktop) using the cp command. Then right click the .desktop file and select 'allow launching'.
1.1. enable symbolic links in nautilus: Settings → Behavior → [x] Show action to create symbolic links
open two windows of nautilus. one for the desktop, second for the shortcut you want to produce.
click the item the shortcut has to produced for with the left mouse button and drag it to the desktop folder in your home directory with the ALT-key pressed.
when you leave the item on the desktop folder a context meune appears, that give you three options. One of them is "create symbolic link" or so.
Then you're done.
Its awful, that this simple feature has to be done the complex way...
On default DE (Gnome 3) symlinking does not work, but .desktop files copying works as TheBuntuNewb said:
For Lubuntu 20.04 desktop the next works:
Displaying items on the desktop could be done using .desktop file copying, .desktop file or folder symlinking or .desktop file creating.
user@ubuntu:~$ ls -ailh ~/Desktop/
total 32K
8126477 drwxrwxr-x 2 user user 4,0K тра 1 12:58 .
8126465 drwxr-xr-x 21 user user 4,0K тра 1 11:49 ..
8130587 -rwxr-xr-x 1 user user 239 кві 20 17:38 anydesk.desktop
8126512 -rw-rw-r-- 1 user user 90 тра 1 12:48 computer.desktop
8130987 lrwxrwxrwx 1 user user 22 тра 1 12:58 Documents -> /home/user/Documents
8130976 -rw-rw-r-- 1 user user 97 тра 1 12:51 Downloads.desktop
8129570 lrwxrwxrwx 1 user user 45 тра 1 12:30 google-chrome.desktop -> /usr/share/applications/google-chrome.desktop
8126514 -rw-rw-r-- 1 user user 94 тра 1 12:48 network.desktop
8129813 -rw-rw-r-- 1 user user 102 тра 1 12:58 trash-can.desktop
8126513 -rw-rw-r-- 1 user user 89 тра 1 12:48 user-home.desktop
anydesk.desktop file is copied: `cp /usr/share/applications/anydesk.desktop ~/Desktop/
google-chrome.desktop is symlinked using ln -s /usr/share/applications/google-chrome.desktop /home/user/Desktop/
Documents link is created by: ln -st /home/user/Desktop /home/user/Documents
Downloads.desktop file which opens the Downloads directory by nautilus is created the next way:
In ubuntu 20.04 you need to make the file executable first, then you'll find the "allow launching" option, anyway I can't add it to the launcher, there's simply no way to do it.
I'm very new to linux, but you all made this too difficult for 20.04. You were close to making it simple. Easy solution!
Click on Files or Show Applications and type Files, and open Files. Now in the upper right corner you have your 3 lines hamburger menu. Click that, and click Preferences, then click Behavior, then "Show Action to create symbolic links".
Now any time you right click on a file or folder, you can drag that file or folder with in "Files" to "Desktop" on the left side column. Once the symbolic link or shortcut is moved, you can rename it so it looks like the original source file or folder name.
This answer was meant to be a comment, but I don't have enough reputation points.
A small addition on TheBuntuNewb's answer that might be obvious to some but nearly drove me crazy: the name of the .desktop file has to match exactly the name of the executable file.
For example, I was trying to create a shortcut for pycharm named pycharm.desktop, but the Allow launch option was not showing up, until I renamed the file to pycharm.sh.desktop. After renaming everything worked smoothly.
I am assuming this is due to security concerns, but it's worth pointing out to hopefully save someone's time!
For Application Shortcuts:
I think TheBuntuNewb's answer is pretty good. Do that using file manager:
/usr/share/applications
For Folder/File shortcuts:
Either directly use the terminal to create a symbolic link
or
Open the folder in the file manager (nautilus), navigate to the directory to which you want to create a shortcut to.
Right click and select Open in Terminal.
For shortcut to current directory, type and execute
For shortcut to a file/folder inside the current directory, type and execute
or
You can copy a file from
/usr/share/applications
to your desktop folder (~/Desktop
) using thecp
command. Then right click the.desktop
file and select 'allow launching'.An example would be
Make sure to include the .desktop ending.
You might also have to allow launching for an existing
.desktop
file after upgrading to Ubuntu 20.04.Easy graphical way:
1.1. enable symbolic links in nautilus: Settings → Behavior → [x] Show action to create symbolic links
open two windows of nautilus. one for the desktop, second for the shortcut you want to produce.
click the item the shortcut has to produced for with the left mouse button and drag it to the desktop folder in your home directory with the ALT-key pressed.
when you leave the item on the desktop folder a context meune appears, that give you three options. One of them is "create symbolic link" or so.
Then you're done.
Its awful, that this simple feature has to be done the complex way...
On default DE (Gnome 3) symlinking does not work, but
.desktop
files copying works as TheBuntuNewb said:For Lubuntu 20.04 desktop the next works:
Displaying items on the desktop could be done using
.desktop
file copying,.desktop
file or folder symlinking or.desktop
file creating.anydesk.desktop
file is copied: `cp /usr/share/applications/anydesk.desktop ~/Desktop/google-chrome.desktop
is symlinked usingln -s /usr/share/applications/google-chrome.desktop /home/user/Desktop/
Documents
link is created by:ln -st /home/user/Desktop /home/user/Documents
Downloads.desktop
file which opens the Downloads directory by nautilus is created the next way:In my case file properties changing is not required for
.desktop
file - it asks to execute it anyway:In ubuntu 20.04 you need to make the file executable first, then you'll find the "allow launching" option, anyway I can't add it to the launcher, there's simply no way to do it.
It's ridiculous that there's no easy way to do this. You need to search google and become crazy simply to add one icon. One icon. Great OS.
A very easy and elegant way to create a shortcut to an file or folder is to create a symlink to the desktop. I have tested this on Lubuntu 20.04 LTS
To do this do the following:
Drag the file or folder from
pcmanfm
to your desktopThen choose
create symlink here
As I said before, this will probably only work on Lubuntu 20.04 (featuring the LXQt desktop)
I'm very new to linux, but you all made this too difficult for 20.04. You were close to making it simple. Easy solution!
Click on Files or Show Applications and type Files, and open Files. Now in the upper right corner you have your 3 lines hamburger menu. Click that, and click Preferences, then click Behavior, then "Show Action to create symbolic links".
Now any time you right click on a file or folder, you can drag that file or folder with in "Files" to "Desktop" on the left side column. Once the symbolic link or shortcut is moved, you can rename it so it looks like the original source file or folder name.
This answer was meant to be a comment, but I don't have enough reputation points.
A small addition on TheBuntuNewb's answer that might be obvious to some but nearly drove me crazy: the name of the .desktop file has to match exactly the name of the executable file.
For example, I was trying to create a shortcut for pycharm named pycharm.desktop, but the Allow launch option was not showing up, until I renamed the file to pycharm.sh.desktop. After renaming everything worked smoothly.
I am assuming this is due to security concerns, but it's worth pointing out to hopefully save someone's time!
Why not just use
gnome-extensions
?Installation:
(if missing) https://extensions.gnome.org/extension/1465/desktop-icons/
https://extensions.gnome.org/extension/3240/add-to-desktop/
Usage:
Thanx to "nobody" here on this forum, the command below solves this problem once you've created your starter on your desktop:
My exemple on Debian:
My exemple on Ubuntu:
Hope this helps.