all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacsclient and XAUTHORITY variable
@ 2015-08-02 21:49 Ulrich Mueller
  2015-08-06 23:02 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Mueller @ 2015-08-02 21:49 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-08 23:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-02 21:49 emacsclient and XAUTHORITY variable Ulrich Mueller
2015-08-06 23:02 ` Stefan Monnier
2015-08-08 23:07   ` Ulrich Mueller

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.