summaryrefslogtreecommitdiffstats
path: root/profile.d/xhost.sh
blob: 04bb7ee4906faf849528441e56b9611b5df6577e (plain)
1
2
3
4
5
6
7
8
9
# 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