Comment 20 for bug 1430059

Revision history for this message
Guillaume MM (gadmm) wrote : Re: Many options in various menus appear greyed out, inaccessible

Dear bug tracker,

The bug appeared after the following commit in indicator-appmenu:
<http://bazaar.launchpad.net/~indicator-applet-developers/indicator-appmenu/trunk.15.04/revision/267>
Attached is a patch against the latest revision that narrows down the issue.

Developers more familiar with lyx or indicator-appmenu might be able to tell whether the commit exposes an earlier bug of LyX (for instance forgetting to register some signal), or whether the bug is in indicator-appmenu (in that case feel free to adapt my patch).

In particular, by looking at the comments in the source, I am not sure that the path taken to update the menu, before this commit, was at all intended. Also, symptoms of this bug include the fact that there is a small delay before the menu is updated, and Scott Kostyshak mentioned that the callback Menu::updateView() in lyx was in fact called twice. This hints at a deeper bug either in lyx or indicator-appmenu. It would be nice to solve all at once because it has made lyx feel sluggish ever since indicator-appmenu was introduced in Ubuntu.

Thanks!

In the meanwhile, the proper workaround is to run lyx with the command line:
  QT_X11_NO_NATIVE_MENUBAR=1 lyx
or equivalently to adapt /usr/share/applications/lyx.desktop as follows:
  Exec=env QT_X11_NO_NATIVE_MENUBAR=1 lyx %F