How does the Application Launcher find applications?

I know how to manually add an application.

What I want to know is how does the application launcher find the applications that I don’t add manually? Is there a directory or a path it looks in? Or a way to register applications? Or a config file?

Thank you,
G

.Desktop files represent menu entries. Those are usually found in /usr/share/applications/, but also in other places such as your home dir: ~/.local/share/applications/.

try looking in man kbuildsycoca5 and see if that answers your question.

or it may be a 6 if you are plasma6