Comment 4 for bug 471726

Revision history for this message
Robert C Jennings (rcj) wrote :

#!/bin/bash
## This is provided as a example of the steps required to work-around this issue.
## I am worried that it will get less attention with a workaround provided, but
## someone is going to do it, so here it is.

HOST=laptop
USER=user

## Add the cookie for :0 to the xauth file
## NOTE: This assumes that there is only one /var/run/gdm/auth-for-${USER}* directory
ssh -XC ${USER}@${HOST} 'xauth merge /var/run/gdm/auth-for-${USER}*/database'
# ssh -XC ${USER}@${HOST} 'xauth list'

## Run x2x on the remote host
## NOTE: This assumes that the desktop on the remote host is :0.0
ssh -XC ${USER}@${HOST} 'x2x -east -to :0.0'

## Remove the cookie for :0 from the xauth file
## NOTE: This assumes that the desktop on the remote host is :0.0
ssh -XC ${USER}@${HOST} 'xauth remove ${HOST}/unix:0'
# ssh -XC ${USER}@${HOST} 'xauth list'