How to disable the Global Menu / Application Menu / AppMenu

Original discussion was found on: http://www.tinyguru.com/ubuntu/qid10481.html.

For a single user only, all applications

  • According to original: Add this to ~/.gnomerc and log out of the desktop and in again:
      STARTUP="env UBUNTU_MENUPROXY= $STARTUP"
      
  • Local Note: This didn't work for me ... I had to change it to:
      STARTUP="env -u UBUNTU_MENUPROXY $STARTUP"
      

For a single user only, only applications launched from the shell

  • Add this to ~/.bashrc and restart the shell:
      UBUNTU_MENUPROXY=
      

For a single user only, only for specific applications launched from the shell

For a single user only, only for specific application launchers

For all users, all applications with a fix in /etc

  • Create config file with fix (note that the parentheses are part of the command):
      (umask 022; echo UBUNTU_MENUPROXY= | sudo tee /etc/X11/Xsession.d/81ubuntumenuproxy)
      

    After this, log out of the desktop and in again.

  • To remove the fix:
      sudo rm /etc/X11/Xsession.d/81ubuntumenuproxy
      
  • Based on http://www.webupd8.org/2011/03/disable-appmenu-global-menu-in-ubuntu.html.

For all users, all applications fix by uninstalling packages

  • Ubuntu 11.04 and 11.10:
      sudo apt-get remove appmenu-gtk indicator-applet-appmenu indicator-appmenu
      
  • Ubuntu 12.04:

      sudo apt-get remove appmenu-gtk appmenu-gtk3 appmenu-qt indicator-appmenu
      
  • After this, log out of the desktop and in again.
  • To undo, just install the packages again: sudo apt-get install [...]
  • Based on http://www.webupd8.org/2011/03/disable-appmenu-global-menu-in-ubuntu.html.

Notes 1

  • Just doing
      sudo apt-get remove indicator-appmenu
      
    will still give problems with gvim and image viewers etc. since UBUNTU_MENUPROXY will still be set to 'libappmenu.so' by the appmenu-gtk and appmenu-gtk3 packages.

Notes 2

  • The default value is UBUNTU_MENUPROXY='libappmenu.so'. The UBUNTU_MENUPROXY= statement clears the variable. Note that export [...] is not required when changing an already existing variable.

See also

  • Gvim might spit out this warning 25 seconds after being started:
      ** (gvim:20320): WARNING **: Unable to create Ubuntu Menu Proxy: Timeout was reached
      

    To fix this, either disable global menu, at least for gvim, or fix gvim.

  • Delayed in-window menu creation is a problem in image viewers etc., for example eog.

    To fix this, disable the global menu properly, at least for those applications.

  • Get both global menu and in-window menu:
      APPMENU_DISPLAY_BOTH=1
      

    See http://askubuntu.com/a/6802/32651.