GNOME Bugzilla – Bug 764277
Race condition when adding new applications
Last modified: 2021-05-25 12:46:00 UTC
When a new desktop file is created in gnome-menus search path, gnome-menus checks that a file in TryExec is available, and if it is, adds the desktop file to the menu structure. However, there is a race condition here. The desktop file may be installed *before* the file referenced by TryExec (the order in which files in a package are unpacked is not determined). As a result of this, some applications will not show in the menu until the panel is restarted. See https://bugs.launchpad.net/bugs/1518775 for an example. One possible solution for this would be adding file watchers for files referenced by TryExec, and adding the applications when those files are created.
Same thing with Exec..
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new enhancement request ticket at https://gitlab.gnome.org/GNOME/gnome-menus/-/issues/ Thank you for your understanding and your help.