emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS trunk emacsclient: X11 connection rejected


From: Stefan Monnier
Subject: Re: CVS trunk emacsclient: X11 connection rejected
Date: Sat, 27 Oct 2007 15:51:57 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

>> So the `emacs' server was run with XAUTHORITY=/tmp/.gdmES6K0T which
>> only contains keys to contact ":0.0", where the pseudo-display setup
>> by ssh on localhost:10 uses its own key, stored in ~/.Xauthority. So
>> the problem is that the `emacs' server can't find the appropriate
>> key because it's not looking at the right file.

> I did try a test with an unset XAUTHORITY:

host1> XAUTHORITY= emacs -Q -f server-start &
host1> ssh host2
host2> ssh host1 emacsclient --no-wait $PWD/README

> and it didn't seem to help. Maybe I should have been setting it to
> ~/.Xauthority. I can't test this again till Monday now.

Hmm.. so the Xauth key in /tmp/.gdmES6K0T is also in ~/.Xauthority
(otherwise `emacs -Q' wouldn't have been able to open the display)?

What happens if you do

   host2> ssh host1
   host1> echo "$DISPLAY"

and then use this DISPLAY (presumably somehting like "localhost:10"): go to
your Emacs and type

   M-: (make-frame-on-display "localhost:10") RET


        Strefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]