summaryrefslogtreecommitdiff
path: root/85rescue-library-path
blob: b7b5ead126e3478466c949d4a314f32362dca341 (plain)
1
2
3
4
5
6
7
8
# 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}"