2

I want make a desktop icon, that will launch a program. Currently I can launch app from icon in "Show Applications", but I want icon on desktop.
I know, I should use

gnome-desktop-item-edit --create-new ~/Desktop

for creating shortcuts.

The problem is - I don't know command that will launch this particular app from terminal. And obviously, I need this unknown to me command for creating shortcuts. I installed from snap, so I can't just copy icon from /usr/share/applications.

Any advice how to find such command or move icon from "Show Applications" to desktop?

pomsky
  • 70,557

1 Answers1

3

As you have mentioned that you installed the application from snap and it can be found in 'Show Applications', the .desktop launcher for the application should be found in the /var/lib/snapd/desktop/applications/ directory. Just copy the .desktop launcher from there to your desktop.

Also you should be able to find the executable for the application in the /snap/bin/ directory. So if you want to manually create the .desktop launcher in your desktop, then you can use /snap/bin/<application> (e.g. /snap/bin/firefox) as the command. You can find the <application> part by running

snap list

Alternatively, you can use snap run <application> as the command (and of course, also to run the application from Terminal).

pomsky
  • 70,557