I suspect that we want /etc/X11/Xsession.d/50_check_unity_support to be something like this (untested):
# This file is sourced by Xsession(5), not executed.
# Select the right session if we have already done
# an unity check, try to check it other
if [ "x$DESKTOP_SESSION" = "xubuntu" ] && [ ! -f "/tmp/unity_support_test.0" ]; then
if [ -f "/tmp/unity_support_test.1" ]; then
export LIBGL_ALWAYS_SOFTWARE=1
else /usr/lib/nux/unity_support_test
if [ $? -ne 0 ]; then
export LIBGL_ALWAYS_SOFTWARE=1
fi
fi
fi
I suspect that we want /etc/X11/ Xsession. d/50_check_ unity_support to be something like this (untested):
# This file is sourced by Xsession(5), not executed.
# Select the right session if we have already done
# an unity check, try to check it other
if [ "x$DESKTOP_SESSION" = "xubuntu" ] && [ ! -f "/tmp/unity_ support_ test.0" ]; then support_ test.1" ]; then SOFTWARE= 1
/usr/lib/ nux/unity_ support_ test SOFTWARE= 1
if [ -f "/tmp/unity_
export LIBGL_ALWAYS_
else
if [ $? -ne 0 ]; then
export LIBGL_ALWAYS_
fi
fi
fi