@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:
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.
@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 networkname laptop- installname
HOST=laptop-
HOSTlocal=
USER=user
cmd1="xauth merge /var/run/ gdm/auth- for-${USER} */database" /unix:0"
cmd2="xauth list"
cmd3="x2x -west -to :0.0"
cmd4="xauth remove ${HOSTlocal}
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!