It's really a shame that Emacs doesn't just work with elementary.
To make your live easier, you can set XLIB_SKIP_ARGB_VISUALS=1 directly in Emacs' .desktop file. Just modify /usr/share/applications/emacs.desktop to say:
Exec=env XLIB_SKIP_ARGB_VISUALS=1 emacs %F
Alternatively, you can copy over the .desktop file to $HOME/.local/share/applications so that it is not overwritten on the next Emacs package upgrade.
It's really a shame that Emacs doesn't just work with elementary.
To make your live easier, you can set XLIB_SKIP_ ARGB_VISUALS= 1 directly in Emacs' .desktop file. Just modify /usr/share/ applications/ emacs.desktop to say:
Exec=env XLIB_SKIP_ ARGB_VISUALS= 1 emacs %F
Alternatively, you can copy over the .desktop file to $HOME/. local/share/ applications so that it is not overwritten on the next Emacs package upgrade.