setup/profile.d/xhost.sh
2011-04-26 13:22:53 +02:00

10 lines
203 B
Bash

# Export Xauthority for users not for root.
if [ ! -z "$DISPLAY" -a -z "$SSH_TTY" ];then
if [ "`id -u`" -gt 14 ];then
if [ -z $XAUTHORITY ];then
export XAUTHORITY=$HOME/.Xauthority
fi
fi
fi