Hi Jean-Marc,
On 05/01/15 23:46, Jean-Marc Lasgouttes wrote:
Hi Guillaume,
I am in vacation this week, but I will look at what I can do next week. What
would be helpful is a description of what indicator happens expects. The menu
code in LyX has mostly been done in an empirical way.
In the meanwhile I looked a bit further, but I'll leave it there. See
<https://bugs.launchpad.net/ubuntu/+source/lyx/+bug/1430059>.
Apparently, dbusmenu is going to be deprecated anyway
<http://askubuntu.com/a/139925>. So I am happy if the previous behaviour
is just restored, as with the patch (for indicator-appmenu) that I proposed.
Your workaround is intriguing. Is there a general notion of global menu bar in
Qt? Currently we have special code for MacOS, it could maybe be expanded to
cover unity too.
You can have a look at g/qmenumodel <https://launchpad.net/qmenumodel>,
which is going to replace dbusmenu. Maybe that with qmenumodel you can
extend the code for MacOS to cover the Unity global menu. This would be
a nice feature, and maybe leave the current problems behind.
Another possibility is that we should react to some signals.
See <https://bugs.launchpad.net/ubuntu/+source/lyx/+bug/1430059>, it
seems unlikely.
Guillaume
JMarc
Le 30 avril 2015 02:12:15 CEST, Guillaume M-M <ga...@free.fr> a écrit :
Dear list,
The bug appeared in indicator-appmenu after the following commit:
<http://bazaar.launchpad.net/~indicator-applet-developers/indicator-appmenu/trunk.15.04/revision/267>
See
<https://bugs.launchpad.net/indicator-appmenu/+bug/1430059/comments/20>
for more details. I continued the discussion there because it is not
clear if the bug is in lyx or indicator-appmenu.
Scott, I am willing to test out any patch against master on 15.04.
In the meanwhile the workaround is to run lyx with the command line:
QT_X11_NO_NATIVE_MENUBAR=1 lyx
or to adapt /usr/share/applications/lyx.desktop as follows:
Exec=env QT_X11_NO_NATIVE_MENUBAR=1 lyx %F