In the Gnome desktop environment I can create a shortcut to an application by placing the .desktop file in ~/.local/share/applications/, like this:

cat > ~/.local/share/applications/vscode.desktop <<EOL
[Desktop Entry]
Exec=/media/data/sas/devel/opt/code/code %f
Comment=Editor for building and debugging modern web and cloud applications

That way I can press the Meta key and just start typing "code" to then select and run the application.

How can I achieve the same within KDE Plasma 5?

Using Kubuntu 18.04, KDE Plasma 5.12.7, KDE framework 5.44

edit: just had to create the folder and everything worked as expected, sorry...

  • 1
    Why not? What happens when you try, assuming you've made the .desktop file executable and the name is unique.
    – DK Bose
    May 24, 2019 at 6:01
  • 1
    It should be the same.
    – Bruni
    May 24, 2019 at 6:01
  • sorry, the directory just wasn't there, in ubuntu (gnome) it's always there by default... I created it and everything worked fine... I googled around but couldn't find an example for kde...
    – opensas
    May 24, 2019 at 6:30
  • 1
    It doesn't exist in Kubuntu 19.04. I guess the same applies to Kubuntu 18.04 as well but I can't remember!
    – DK Bose
    May 24, 2019 at 8:37

1 Answer 1


Global application launch files ending ".desktop" go in:


Personal application files go in:


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .