Try to set the screen number as well.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1058 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-11-19 23:12:19 +00:00
parent 94cb9a93ac
commit 0fb60b68f6
2 changed files with 4 additions and 2 deletions

View File

@@ -27,8 +27,9 @@ set -- `kx $host`
if test $# -ne 3; then
exit 1
fi
screen=`echo $DISPLAY | sed -ne 's/[^:]*:[0-9]*\(\.[0-9]*\)/\1/p'`
pid=$1
disp=$2
disp=${2}${screen}
auth=$3
term=
oldifs=$IFS

View File

@@ -27,8 +27,9 @@ set -- `kx $host`
if test $# -ne 3; then
exit 1
fi
screen=`echo $DISPLAY | sed -ne 's/[^:]*:[0-9]*\(\.[0-9]*\)/\1/p'`
pid=$1
disp=$2
disp=${2}${screen}
auth=$3
kill -USR1 $pid
rsh $rsh_args $host "env DISPLAY=$disp XAUTHORITY=$auth xterm -T $title -n $title $xterm_args &"