setup/profile.d/xhost.sh

10 lines
203 B
Bash
Raw Permalink Normal View History

2011-04-26 13:22:53 +02:00
# 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