@GeorgeUdosen From the top answers it doesn't look much different from the way it used to work in older releases though (for example: https://askubuntu.com/a/457377/480481).
– pomskyMay 07 '20 at 08:47
1
NONE of the suggested solutions worked for me. It is absolutely crazy that in 2021 you cant add a link to a launch bar. I ended up creating a link using `ln` command, but that still wouldn't allow me to add my app to the launch bar
– RotkivJan 13 '21 at 16:48
This should be the accepted answer because it actually allows to create a desktop shortcut, rather than suggesting you to reuse a shortcut which can only exist for only certain installed applications...
– Arturas MApr 06 '21 at 14:08
Its works for me
https://linuxconfig.org/how-to-create-desktop-shortcut-launcher-on-ubuntu-20-04-focal-fossa-linux
– Rγσ ξηg Lιαη Ημ 雷欧Apr 29 '21 at 02:04
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'.
Yes I was able to launch the file but the icon looks like a cog, but you can change that by right clicking the fille, choosing properties, click the icon and select the proper one
– PlasmaApr 28 '20 at 22:18
I will mark this answer as accepted for now, as it seems to be the most simple solution! Unfortunately I was away when the bounty expired so it got auto-awarded. I don't know why it did not go to you as you're answer has the most upvotes.
– PsychotechnopathMay 09 '20 at 08:00
run `cp` on the .desktop file. `/usr/share/applications` is just where most are.
– PlasmaApr 04 '21 at 18:07
How can this be marked as a valid answer?? Why would /usr/share/applications contain anything that I need? - It doesn't!
– Arturas MApr 06 '21 at 14:05
Because the question asked for multiple things (files, documents) and I provided an answer for the application part. If you wanted to do a file, just use `ln -s `
– PlasmaApr 06 '21 at 21:20
This is actually **not making** a desktop shortcut. It simply copies an existing one to the desktop.
– Marc CompteFeb 16 '22 at 11:32
13
Easy graphical way:
show your desktop in your home directory
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:
The second part of your answer is not related to Unity, but GNOME 3 (default DE on standard Ubuntu 20.04).
– pomskyMay 01 '20 at 19:55
The following website illustrates the same, but it was a bit easier to follow for me than this one. https://linuxconfig.org/how-to-create-desktop-shortcut-launcher-on-ubuntu-20-04-focal-fossa-linux
– Prof.ChaosOct 12 '20 at 07:34
4
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 share your frustration. Even more annoyingly, they actually *removed* this feature, e.g. 10.04 had it. To add to launcher copy to `~/.local/share/applications` as well as `~/Desktop`
– Edward ChamberlainAug 21 '21 at 22:54
3
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 desktop
Then choose create symlink here
Finally a shortcut should have been created!
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!
Works perfectly, Amazing! Works also for appImage, but for this one, the key was to find out where the .desktop file is hided... For me, it was at ~\.local\share\applications (after using the AppImageLauncher)
– hamagustMar 03 '21 at 20:48
2
The easiest UI way:
Just open two windows of Files (file manager) and drag a file what you need, with holding down Alt key,
as result you will get a familiar window dialog with Link Here
You can't create link directly dragging file to Desktop, you should open Desktop via Files
It's much easier than many think. In the Nautilus file browser, click on ≡ → Preferences, and under Optional Context Menu Actions, activate Create Link. Now, you can simply add a shortcut through right-clicking on the file or folder.
For folder shortcut, first you need to enable the simlink creation under Files --> Preferences in the Behavior tab (Show action to create symbolic links) in order that the Create link menu can appear when you right click on a folder. You can do the same with SHIFT+CTRL+M but this key combination works only if the simlink creation is enabled as described above (otherwise useless), and you will also need to turn on Capslock before using the keys to trigger capital 'M'...
For an average desktop user this is pain, and could be all enabled as default.
The start of Eiko's "Easy graphical way:" (see above) had the best answer. Do as far as Eiko's 1.1 (viz. again to quote in part Eiko's method
1 show your desktop in your home directory
1.1. enable symbolic links in nautilus: Settings → Behavior → [x] Show action to create symbolic links
but then after 1.1 follow with
move to the the file or folder to be linked and right-click upon it to open a drop-down/pop-up menu then use the Create Link option (or use Shift+Ctrl+M hot-key. This creates the link in the target's directory which can be copied/moved to the required location.
I had also discover, without Eiko's first steps that simply doing a
shift-control while drag-and-drop on the target object but with dragging just off the target's position followed by dropping back onto the target correctly creates the iconised link locally in the target's directory.
The behaviour is different (changed?) to how it was in past versions.
To keep working with GUI one have to enable symbolic link creation in Nautilus by visiting its settings: Settings → Behavior → [x] Show action to create symbolic links and then user will be able to create symbolic links for executables, folders and files on the ~/Desktop.
But the most elegant way for average non-techinal user who is scared by the terminal - would be to not use GNOME Shell and install Unity or MATE DE instead with one of the two solutions below:
sudo apt-get install ubuntu-unity-desktop
sudo apt-get install ubuntu-mate-desktop^
then select one of these sessions on the login screen and as the result to forget this new GNOME Shell nightmare (the Desktop without DESKTOP is a pain, but not the real desktop).
More technical users who prefer traditional desktop with traditional habbits have to remove GNOME Shell completely and install other DE of their preference. I have a solution for such method which was tested on Ubuntu 20.04 LTS freshly installed VM.
Could you elaborate ~ What is GNOME Shell, what is Unity / MATE DE, and what do you mean by your last sentence? ("he Desktop without DESKTOP is a pain, but not the real desktop"). Is it necessary to install a new desktop to create shortcuts?
– PsychotechnopathApr 29 '20 at 14:34
8
Being sarcastic, in 2020 it is necessary to install new/other desktop to get the functionality which were here for 25+ years. The desktop is a desk top, so you can add icons and folders here like if the are physical objects. For now it is difficult to do in the enterprise-grade default Ubuntu desktop environment. The GNOME Shell, Unity and MATE DE are desktop environments. Use Google, YouTube or any other means to get brief vision of their look and feel. The functionality loss of GNOME Shell you have already discovered.
– N0rbertApr 29 '20 at 14:48
3
1/2:- I can create shortcut of anything on desktop using right-click menu on Xfce (Xubuntu). As far I know GNOME devs removed the functionality several versions back. They want the desktop to be a plain wallpaper with nothing on top. They also want app windows to be minimized-maximized exclusively with mouse gesture. Ubuntu is using various workaround to get around these "features" including extensions which is already irritating some people (bit.ly/35txvCb)
– HattinGokbori87May 03 '20 at 00:49
3
2/2:- Recently there's some cries like that about how extensions are de-virginizing gnome. So we shouldn't be surprised to see that feature being limited/ terminated in the future too.
– HattinGokbori87May 03 '20 at 00:50