bash: Merge Xauth if using two homes

This commit is contained in:
2019-11-04 13:04:31 +00:00
parent e0d55fe00f
commit de0c54a495

7
bashrc
View File

@@ -109,6 +109,13 @@ else
. $SSH_AGENT_FILE
fi
if [ "$HOME2" != "" ] ; then
echo "Switched root, merging $HOME2/.Xauthority"
xauth merge $HOME2/.Xauthority
fi
# TODO Do with dropbox now...
# Done the longer format so we catch dropbox instance, rather than stuff like
# "links http://www.dropbox.com/"
# DROPBOX_PID=$(ps -u paul | grep dropbox$ | awk '{print $1}')