ME=`hostname -s`
export ME
+# Move Xauthority file to local storage, so that sudo et all work
+if [ -z "$XAUTHORITY" -a -r ~/.Xauthority ]; then
+ cp ~/.Xauthority /tmp/Xauthority-$USER
+ chmod 600 /tmp/Xauthority-$USER
+ export XAUTHORITY="/tmp/Xauthority-$USER"
+fi
+
# read profile additions
if [ -d /etc/profile.d ]; then
for f in /etc/profile.d/*; do