Bug 764277 - Race condition when adding new applications
Race condition when adding new applications
Status: NEW
Product: gnome-menus
Classification: Core
Component: libgnome-menu
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-menus dummy account
gnome-menus dummy account
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2016-03-28 09:34 UTC by Dmitry Shachnev
Modified: 2016-03-29 23:39 UTC (History)
1 user (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments

Description Dmitry Shachnev 2016-03-28 09:34:23 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.
Comment 1 Alberts Muktupāvels 2016-03-29 23:39:07 UTC
Same thing with Exec..

Note You need to log in before you can comment on or make changes to this bug.