bash: Merge Xauth if using two homes
This commit is contained in:
7
bashrc
7
bashrc
@@ -109,6 +109,13 @@ else
|
|||||||
. $SSH_AGENT_FILE
|
. $SSH_AGENT_FILE
|
||||||
fi
|
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
|
# Done the longer format so we catch dropbox instance, rather than stuff like
|
||||||
# "links http://www.dropbox.com/"
|
# "links http://www.dropbox.com/"
|
||||||
# DROPBOX_PID=$(ps -u paul | grep dropbox$ | awk '{print $1}')
|
# DROPBOX_PID=$(ps -u paul | grep dropbox$ | awk '{print $1}')
|
||||||
|
|||||||
Reference in New Issue
Block a user