linux How to add new item to KDE Application Launcher from terminal?
You’re welcome. I myself not once and not twice stumbled upon long wanted solution in obscure corners of internet.
@podbrushkin.mander.xyz.ap.tdpl.io
1 Posts4 Comments0 Memberships
Joined September 2026
linux How to add new item to KDE Application Launcher from terminal?
You’re welcome. I myself not once and not twice stumbled upon long wanted solution in obscure corners of internet.
linux How to add new item to KDE Application Launcher from terminal?
To me it looked like this command just copies provided .desktop file to ~/.local/share/applications/ directory. Also, there's xdg-desktop-menu uninstall whatever.dekstop which is effectively the same as removing .desktop file from this directory. Probably just copying and removing files is more natural.
linux How to add new item to KDE Application Launcher from terminal?
Yes, I've tried quite a lot of commands and combinations, restarts etc, but seems like problem was in some obscure tag in some obscure XML file which I've never touched before. I've added a comment with solution.
linux How to add new item to KDE Application Launcher from terminal?
Ok, finally I've found solution! Obviously I found it 0.0001 seconds after I publicly asked this question.
Problem is that "Games" menu in mentioned /home/user/.config/menus/applications-kmenuedit.menu XML file does not contain a <Merge type="files"/> tag, that's why KDE Kickoff Application Menu was ignoring .desktop files if they belong to this category. And every sample .desktop file I've created probably belonged to Games category.
I changed this XML file to be like this:
<Menu> <Name>Games</Name> <Include/> <Exclude> <Filename>Quake.desktop</Filename> </Exclude> <Layout> <Merge type="menus"/> <Merge type="files"/>
Now it seems like everything works as expected. I don't understand why it doesn't work by default.