How do you add new application to this “All Applications” menu (and optionally to some of categories) without using GUI “Edit Applications” menu (named “KDE Menu Editor”)?

It may sound like a simple task but I’ve already spent several hours on this with no success.

When you download an app instead of getting it from package manager, you may want to add it to Application Launcher so it will not get lost.

I have myapp.AppImage file, it’s working, I’ve created .desktop file and tried to place it into some system directories (e.g. ~/.local/share/applications/myapp.desktop) or calling xdg-desktop-menu install myfile.desktop but to no avail. New app doesn’t appear in All Applications or specified category, it appears only as a search result, when you start typing its name.

Creating new menu items with GUI “KDE Menu Editor” affects “/home/user/.config/menus/applications-kmenuedit.menu” XML file, but this file doesn’t look like it should be edited manually.

Can you please try adding custom executable to this menu yourself and see if you will succeed? Am I trying to do something quirky and is wrong about expecting this task to be simple?

My system is Kubuntu 26.04, KDE Plasma 6.6.6.

  • podbrushkin ( podbrushkin@mander.xyz ) OP
    link
    fedilink
    arrow-up
    38
    ·
    27 days ago

    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.

  • Snot Flickerman ( SnotFlickerman@lemmy.blahaj.zone ) 
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    27 days ago

    Interesting. I have managed all of mine on a recent Kubuntu 26.04 install through the GUI and it does indeed seem to automatically add that information to the XML file, because I have never run into such a problem but when looking at the file you referenced I indeed see the <Merge type="files"/> a lot of places.

    • 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.