Skip to content

Instantly share code, notes, and snippets.

@disposedtrolley
Last active November 21, 2020 01:19
Show Gist options
  • Save disposedtrolley/2e6d7cd8b5ff5800802dd5c9be6f0891 to your computer and use it in GitHub Desktop.
Save disposedtrolley/2e6d7cd8b5ff5800802dd5c9be6f0891 to your computer and use it in GitHub Desktop.
Adding Snap binaries to the KDE launcher

When you install a Snap, a .desktop file gets created at /var/lib/snapd/desktop/applications. For example, after running snap install authy, my directory looks like this:

applications ⟩ ls -la                                                                                                            /v/l/s/d/applications
total 8
drwxr-xr-x. 1 root root  66 Nov 20 13:23 ./
drwxr-xr-x. 1 root root  34 Nov 19 14:25 ../
-rwxr-xr-x. 1 root root 377 Nov 19 14:47 authy_authy.desktop*
-rw-r--r--. 1 root root  13 Nov 20 13:23 mimeinfo.cache

To add Authy as an entry to the KDE launcher, you need to symlink the .desktop file to the /usr/share/applications directory which is searched by KDE:

sudo ln -s /var/lib/snapd/desktop/applications/authy_authy.desktop /usr/share/applications/authy_authy.desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment