# Add this to /etc/X11/Xsession.d so that LD_LIBRARY_PATH settings are # rescued even in the face of starting setuid executables (i.e. ssh-agent). # # Without this, Compiz and other OpenGL apps won't use the right libGL.so, # and other hilarity ensues. unset LIBGL_DRIVERS_PATH STARTUP="/usr/bin/env LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ${STARTUP}"