The correct way to locate .desktop files used in menus isn't to recursively scan ~/.local/share/applications for them. It is to scan the .menu XML files under ~/.config/menus/applications-merged/ and pull them in from those fields.
The correct way to locate .desktop files used in menus isn't to recursively scan ~/.local/ share/applicati ons for them. It is to scan the .menu XML files under ~/.config/ menus/applicati ons-merged/ and pull them in from those fields.