all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ulrich Mueller <ulm@gentoo.org>
To: emacs-devel@gnu.org
Subject: emacsclient and XAUTHORITY variable
Date: Sun, 2 Aug 2015 23:49:08 +0200	[thread overview]
Message-ID: <21950.36948.623458.877642@a1i15.kph.uni-mainz.de> (raw)

The following came up in https://bugs.gentoo.org/555346 where a user
complained that the XAUTHORITY variable in emacsclient's environment
wouldn't be honoured. I closed that Gentoo bug report, arguing that
"[...] the emacs daemon needs to read X authentication information
from the ~/.Xauthority file. Storing this information in a different
place and pointing XAUTHORITY to it won't work, because the daemon
cannot see this XAUTHORITY variable in its environment."

Thinking about it again, I wonder if this wasn't a premature
conclusion. Creating a frame with emacsclient and calling

   (getenv "XAUTHORITY" (selected-frame))

in the newly created frame shows that XAUTHORITY (or in fact, any
variable from emacsclient's environment) will be passed on to the
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.

Ulrich



             reply	other threads:[~2015-08-02 21:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-02 21:49 Ulrich Mueller [this message]
2015-08-06 23:02 ` emacsclient and XAUTHORITY variable Stefan Monnier
2015-08-08 23:07   ` Ulrich Mueller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21950.36948.623458.877642@a1i15.kph.uni-mainz.de \
    --to=ulm@gentoo.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.