From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse) Newsgroups: gmane.emacs.help Subject: Re: problems with X11 forwarding inside frame Date: Thu, 16 May 2013 05:17:44 +0000 Message-ID: <87zjvvec5j.fsf@riseup.net> References: <86d2stk2ph.fsf@gly.ath.cx> <20130514163043.GA1763@hysteria.proulx.com> <861u99o21r.fsf@gly.ath.cx> <86vc6lmj9l.fsf@gly.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1368681499 31180 80.91.229.3 (16 May 2013 05:18:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 May 2013 05:18:19 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Thu May 16 07:18:18 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UcqZz-0001Yg-P4 for geh-help-gnu-emacs@m.gmane.org; Thu, 16 May 2013 07:18:15 +0200 Original-Received: from localhost ([::1]:49955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcqZz-0007eU-BA for geh-help-gnu-emacs@m.gmane.org; Thu, 16 May 2013 01:18:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcqZk-0007Zr-OE for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 16 May 2013 01:18:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcqZi-0003eP-Gk for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 16 May 2013 01:18:00 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcqZi-0003eE-AZ for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 16 May 2013 01:17:58 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UcqZb-0001Hx-BG for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 16 May 2013 07:17:51 +0200 Original-Received: from 216.243.58.198 ([216.243.58.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 May 2013 07:17:51 +0200 Original-Received: from wgreenhouse by 216.243.58.198 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 May 2013 07:17:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet-dbVV3NMTNubNLxjTenLetw@public.gmane.org X-Gmane-NNTP-Posting-Host: 216.243.58.198 X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:mWJg0W2cQLvXz96sxv3kTs+ipO8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:90833 Archived-At: Joseph Mingrone writes: >> Bob Proulx writes: >>> In order for X programs to connect to your display they will also look >>> at $XAUTHORITY or $HOME/.Xauthority to obtain the magic cookie >>> credentials to be able to connect. > > This seems to be on the right track. When I open a frame with % ssh -f > gly 'emacsclient -nc', I get the DISPLAY error. However, if I leave the > emacs frame and open a local terminal and ssh to gly, then go back to > the emacs frame, X11 forwarding works. I've checked the environment > before and after the second ssh and there are no changes. On the other > hand, ~/.Xauthority on gly does change. > > If think I have to get % ssh -f gly 'emacsclient -nc' to exchange a > magic cookie. I'm guessing the answer is in the xauth man page. > > Joseph Maybe somehow it is the backgrounding behavior of ssh -f that causes the trouble. I use "ssh -Xt host emacsclient -c" often, and it can run other X applications from its shells no problem. -- Regards, WGG