Has a way to create a program shortcut on the desktop entirely from the terminal / CLI (scriptable) been discovered in Ubuntu 20.04?
I can copy in
.desktop files from
/usr/share/applications/, and set them as executable, but apparently that's no longer enough. There is now a final step:
Right-click the shortcut -> Select Allow Launching.
Until that is done, double-clicking it simply opens the
.desktop file as a text file, rather than execute the program. Furthermore before that step, the icon is the generic shell script icon, rather than the program's own icon.
...and I don't yet know how to do that step from the terminal.
Any help is appreciated - thank you.
My own investigations:
Allow Launching does set the script as executable, but doing that manually is not enough.
Also from my investigation it doesn't alter the .desktop file itself, and no changes are made that are visible to
ls -l or
lsattr, so I'm assuming it's some other database of sorts, that tracks which shortcuts it's allowed to launch and which it isn't?
gnome-desktop-item-editcan't do it, and it also no longer exists in recent versions of Ubuntu.
alacarteI'm unsure about, but regardless it's GUI only.
desktop-file-editI'm unsure about.
Allow launchingfixes), but the idea of creating the file association between
gtk-launchis interesting, I'll try that out. But there must be a way of performing that
Allow launchingaction from the terminal somehow. Another way of showing the right icon would also be useful though.