The default directory of *.desktop shortcuts for programs installed system-wide is indeed `/usr/share/applications`. However, there is also another directory with the same role, but intended for programs installed for a specific user, and that is
`.local/share/applications` in user's home directory.
Extra note for the record: the actual file name of each *.desktop shortcut do not necessarily reflect its display text; thus you can have two *.desktop shortcuts both showing "FreeOffice 2021 TextMaker" name even they are both in the same folder- because each of them actually use different file name. (You might have to use command line to inspect this, since your favorite file manager might display them using self-proclaimed name specified in the shortcut themselves, instead of actual filename they use on the filesystem)
To find which *.desktop files are responsible for "FreeOffice 2021 TextMaker" menu item, the following command line should get you covered:
Code:
grep -F -R -i -l 'FreeOffice 2021 TextMaker' /usr/share/applications ~/.local/share/applications
If you found the duplicate one in the latter (user-specific) folder, then you should be able to solve that by moving the offending *.desktop shortcut out of that folder, or change its file extension to something that is not `.desktop`.
Quote:
Originally Posted by Michael Uplawski
My search-criteria may be ill-chosen, but I cannot find information on the Web. What am I missing?
|
If you would like to get into the nitty-gritty details, the *.desktop shortcut format is described in
FreeDesktop.org Desktop Entry Specification, and how the launcher menus gathers the shortcuts together is described in
FreeDesktop.org Desktop Menu Specification. Note that these are developer documentation, but can be relevant for power users as well. (The point about `.local/` in home directory is not spelled out here however)
P.S. The relevant FreeDesktop specification on launcher menus seems to
also allow menu itself to specify its own custom *.desktop directory, but I don't think that happens very often; and especially not in the case shown in the screenshot: which was just a stock "Office" menu provided by desktop environment, rather than a submenu dedicated to specific a brand of application suites.