How do I add a .desktop to the menu using menu editor

so I can press the meta key and the application launch app pops up, and start I typing “goog” and up comes the app I want, “google earth”, and I can launch it.

so it’s not in any of the little sub menus, perhaps I deleted it by mistake,

so I’d like to add it to a custom menu I created, called “maps”.

so I open menu editor and I have no idea what to do now.

I don’t know where the app is installed.

I know there is a .desktop file somewhere and I thought I’d be able to choose from a list of all the .desktop files on the system but I can’t see how to do that.

Can I just drag and drop the .desktop into a folder somewhere?

what exactly is it that “menu editor” is editing? some XML somewhere?

cheers

These desktop files are stored in /usr/share/applications and ~/.local/share/applications. Either drag and drop it or run the desktop-file-install $path_to_desktop_file command. There’s probably a graphical way too but this should also do the trick.

thanks very much.

dragging and dropping from /usr/local/share/applications worked fine for adding the entry to the “menu editor”

seems I’ve discovered a bug, switching /usr/share/applications to thumbnails view crashes dolphin.

I selected “Use a common display stye” as a workaround.

cheers!

trying to duplicate this but can’t

from a right click and choosing New Item from the context menu in the KDE Menu Editor i get a General tab with fields as shown

Screenshot_20240525_085124

but when i try to drag a .desktop file from /usr/share/applications/ to the program field it won’t let me… it’s blocked with a “wrong way” icon.

i have to use the browse button and navigate to the file.

but even then, after i Save and then try to use the new application menu entry i get an error notification

the program '/usr/share/applications/galculator.desktop' is missing executable permissions. 

what am i doing wrong/different?

I just opened the “menu editor” program and dropped the .desktop file into the pane on the left.

like this

https://imgur.com/a/JNs6GaB

then pressed “save”.

1 Like

oh, got it… that’s way easier than what i was trying to do.

and it will automagically name it thing-2 if you already have thing in your menu