GNOME Bugzilla – Bug 764277
Race condition when adding new applications
Last modified: 2016-03-29 23:39:07 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..