Getting rid of GTK warnings on Emacs 24.1
I recently upgraded to Emacs 24.1 and from the terminal I’ve been getting a ton of errors like so:
Gtk-Message: Failed to load module “canberra-gtk-module”
`menu_proxy_module_load’: emacs: undefined symbol: menu_proxy_module_load(emacs:17803): Gtk-WARNING **: Failed to load type module: (null)
`menu_proxy_module_load’: emacs: undefined symbol: menu_proxy_module_load
(emacs:17803): Gtk-WARNING **: Failed to load type module: (null)
`menu_proxy_module_load’: emacs: undefined symbol: menu_proxy_module_load
(emacs:17803): Gtk-WARNING **: Failed to load type module: (null)
etc…
Turns out there are a couple of environment variables you can unset in .bashrc to fix this.
export UBUNTU_MENUPROXY=
export GTK_MODULES=
I’ve got no idea what these are for but appears to do the job and I can now start up without seeing a page full of warnings.
nice