From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: emacsclient and XAUTHORITY variable Date: Thu, 06 Aug 2015 19:02:59 -0400 Message-ID: References: <21950.36948.623458.877642@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438902201 26611 80.91.229.3 (6 Aug 2015 23:03:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2015 23:03:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ulrich Mueller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 07 01:03:14 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZNUBu-0007xW-0v for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 01:03:14 +0200 Original-Received: from localhost ([::1]:47072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNUBo-0003Kx-BW for ged-emacs-devel@m.gmane.org; Thu, 06 Aug 2015 19:03:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNUBl-0003Jz-Np for emacs-devel@gnu.org; Thu, 06 Aug 2015 19:03:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNUBg-0006iB-PL for emacs-devel@gnu.org; Thu, 06 Aug 2015 19:03:05 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:49259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNUBg-0006i1-LJ for emacs-devel@gnu.org; Thu, 06 Aug 2015 19:03:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A0EwA731xV//gFNJ1cgxBUgy6FVbs3CYFWhXUEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCw4mEhQYDSSINwjPIwEBAQcCAR+LOoUFB4QtBZchiDSOPIZzI2GDMyKCeAEBAQ X-IPAS-Result: A0A0EwA731xV//gFNJ1cgxBUgy6FVbs3CYFWhXUEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCw4mEhQYDSSINwjPIwEBAQcCAR+LOoUFB4QtBZchiDSOPIZzI2GDMyKCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="159029509" Original-Received: from 157-52-5-248.cpe.teksavvy.com (HELO pastel.home) ([157.52.5.248]) by ironport2-out.teksavvy.com with ESMTP; 06 Aug 2015 19:02:59 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id C80B0604CF; Thu, 6 Aug 2015 19:02:59 -0400 (EDT) In-Reply-To: <21950.36948.623458.877642@a1i15.kph.uni-mainz.de> (Ulrich Mueller's message of "Sun, 2 Aug 2015 23:49:08 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188526 Archived-At: > frame's "environment" parameter. So Emacs has all information which is > necessary, and I wonder if this couldn't be passed to the Xau library > before opening the X display for the new frame? > There is also bug http://debbugs.gnu.org/1467 which seems to be > related. I'm pretty sure that in theory it can be handled, indeed. I don't know how much work it would entail in practice. I must say that I find it a pain in the rear (as a plain user) that gdm3 started to set XAUTHORITY rather than to put the auth data where god intended it to be (i.e. ~/.Xauthority). "emacsclient" is not the only victim, so I'm not highly motivated to fix the problem on Emacs's side. Stefan