11.04 - 13.10 - How to disable the global menu (appmenu / application menu)
For current user only, all applications
Add this to ~/.gnomerc and log out of the desktop and in again:
STARTUP="env UBUNTU_MENUPROXY= $STARTUP"
For current user only, only applications launched from the shell
Add this to ~/.bashrc and restart the shell:
UBUNTU_MENUPROXY=
For current user only, only for specific applications launched from the shell
Add lines like this to ~/.bashrc and restart the shell:
alias gvim='UBUNTU_MENUPROXY= gvim'
Based on https://askubuntu.com/a/132581/32651.
For current user only, only for specific application launchers
See https://askubuntu.com/a/6802/32651.
For all users, all applications (fix it 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 (uninstall 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 [...]
From 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 https://askubuntu.com/a/6802/32651.
References