The new indicator-appmenu in Maverick breaks the LyX menu: the application menu is not shown either in the application window nor in the applet. (See Bug report.)
As a workaround while the bug is fixed, is there a way to make an exception for the applet, so that LyX would be ignored and the applet could still be used for everything else? Something akin to Maximus exceptions.
Run an application
To start an application (eg.,
gcalctool
) with the menu within the application rather than in the panel, run the following in a terminal:To start the application with the menu enabled in the application and the panel, run:
Instead of using the terminal, you can use the Alt + F2 shortcut to start a run dialog, in which you would enter:
or
Edit application launchers in Ubuntu 10.10
To make it easier to always launch your application with the same appmenu settings, you can edit application launchers in the menu, the gnome-panel, and on the desktop:
Gnome-panel and desktop: simply right-click the launcher, select "Properties" and prepend
env UBUNTU_MENUPROXY=
orenv UBUNTU_DISPLAY_BOTH=1
to the value in the "Command" field:(source: xrmb2.net)
Menu: right-click the menu and select "Edit Menus". In the new window, find the launcher you want to edit and click the "Properties" button on the right. Again, simply prepend the variables like above (don't forget the 'env'), click on "Close" two times and you should be done.
Edit launchers in Compiz-based Unity in Ubuntu 11.04
Dirty method: Change the launcher's .desktop file in the
/usr/share/applications
directory:For example, run
Now edit the
Exec=
-line to contain either of the two variables from above, eg.:Save the file, and launching gcalctool from Unity's launcher bar should run it with the menu within the application.
Disadvantages of this method: it will change the launcher for all users and will probably be reverted by system updates.
Better method:
Copy the related .desktop file to your home directory:
Like in the method above, edit the
Exec=
-line to contain either of the two variables:Make the file executable:
Start Nautilus in that folder and double click the .desktop file (which should just read "Calculator" in the example):
Now you should see the launcher icon in the launcher bar - pin it via the quicklist and you are done.
Note: To make above work with KDE applications, replace
UBUNTU_MENUPROXY=
withQT_X11_NO_NATIVE_MENUBAR=1
.Another work around which would not give you the double menus, would be to start LyX with:
Unsetting the UBUNTU_MENUPROXY environment variable will just completely ignore the appmenu.
That should be:
To get rid of the lingering shell process.
I have created a shell script, named "lyx_unity", which executes APPMENU_DISPLAY_BOTH=1 before lyx, and edited the menu entry so that it executes "lyx_unity" instead of "lyx".
@waluylo, my (and probably Robert's too) lyx wrapper looks simply like this