Disable the AppMenu (Global Menu) in Ubuntu for an individual application
If you want to run an application with the menu inside the application window and not on the Uniy panel (which is not a regular Gnome Panel!), use the following command (just an example):
UBUNTU_MENUPROXY=0 gedit
No, that's not an error, you basically must run "UBUNTU_MENUPROXY" with an empty value.
You can also run an application with the menu in both the Unity panel and the application window, like so:
APPMENU_DISPLAY_BOTH=1 gedit
You can edit the .desktop file if you want to make some menu item always open a certain application without AppMenu (you can find them in /ur/share/applications).
Disable the AppMenu Indicator in Ubuntu (Unity) for all applications
If you want to disable the Appmenu (Global Menu) for all the applications in Unity, run the following commands:
sudo su
echo "export UBUNTU_MENUPROXY=0" > /etc/X11/Xsession.d/81ubuntumenuproxy
Then restart your computer.
You can also remove the AppMenu (but this might also remove the ubuntu-desktop meta package) if the above tweak doesn't work:
- for Ubuntu 11.04 and 11.10:
sudo apt-get remove appmenu-gtk indicator-applet-appmenu indicator-appmenu
- for Ubuntu 12.04, 10.10 and 13.04:
sudo apt-get remove appmenu-gtk appmenu-gtk3 appmenu-qt indicator-appmenu
If you want to re-enable the AppMenu, simply remove the /etc/X11/Xsession.d/81ubuntumenuproxy file:
sudo rm /etc/X11/Xsession.d/81ubuntumenuproxy
Or, if you've removed it, install it back:
- for Ubuntu 11.04 and 11.10:
sudo apt-get install appmenu-gtk indicator-applet-appmenu indicator-appmenu
-for Ubuntu 12.04, 12.10 and 13.04:
sudo apt-get install appmenu-gtk appmenu-gtk3 appmenu-qt indicator-appmenu
Considering the discussion on the Ayatana mailing list, who knows, maybe the AppMenu will get an option to disable the autohide or some other changes - everything is possible since Ubuntu 11.04 is still alpha.