Comment 5 for bug 471726

Revision history for this message
David Boersma (david-boersma) wrote :

@Brian, Claus: at ubuntuforums it was suggested (http://ubuntuforums.org/showthread.php?t=1309289) that this is maybe (indeed) more a gdm issue than an x2x issue.

@Robert: I tried your workaround script and it works, thanks! I needed a little tweak though; our network administrator assigned a different static name to my laptop than I configured when installing Karmic. I need the network name to run ssh, but xauth uses the local install name. So I rewrote the script to:

#!/bin/bash
HOST=laptop-networkname
HOSTlocal=laptop-installname
USER=user

cmd1="xauth merge /var/run/gdm/auth-for-${USER}*/database"
cmd2="xauth list"
cmd3="x2x -west -to :0.0"
cmd4="xauth remove ${HOSTlocal}/unix:0"
ssh -XC ${USER}@${HOST} "$cmd1; $cmd2; $cmd3; $cmd4"
ssh -XC ${USER}@${HOST} "xauth list"

When I interrupt the script with ^C, cmd4 (xauth remove) apparently still gets executed, because the final xauth list shows only one entry, as desired.

Thanks!