all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sascha Wilde <wilde@sha-bang.de>
To: emacs-devel@gnu.org
Subject: Changing the MIT-MAGIC-COOKIE-1 used by emacs --server
Date: Tue, 24 Mar 2009 12:06:22 +0100	[thread overview]
Message-ID: <m2bprr18pd.fsf@sha-bang.de> (raw)

Hi *,

The problem in short:

- start an X11 server with -auth
  (which is what most display-managers or startx do nowadays)
- start `emacs --server'
=> `emacsclient -c' can create a new X11-frame
- quit the X11 server (but leave the emacs server)
- start a new X11 server with -auth
=> `emacsclient -c' can't create a new frame anymore

I guess the problem is due to the changed authorization information
(cookie).  Is there a way to tell the emacs server to use new
authorization data for a given display?  

I made a naive attempt by 
(setenv "XAUTHORITY" "/path/to/new/xauth-file")
but this didn't work...

cheers
sascha
-- 
Sascha Wilde
We're Germans and we use Unix. That's a combination of two 
demographic groups known to have no sense of humour whatsoever.
  -- Hanno Mueller in de.comp.os.unix.programming




             reply	other threads:[~2009-03-24 11:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-24 11:06 Sascha Wilde [this message]
2009-03-24 11:33 ` Changing the MIT-MAGIC-COOKIE-1 used by emacs --server Stefan Monnier
2009-03-24 16:44   ` Sascha Wilde
2009-03-24 16:59     ` Sascha Wilde
2009-03-25  1:11     ` Stefan Monnier
2009-03-25  1:15       ` Samuel Bronson
2009-03-25  1:57         ` Stefan Monnier
2009-03-25  9:07       ` Sascha Wilde
2009-03-25 11:54         ` Sascha Wilde

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=m2bprr18pd.fsf@sha-bang.de \
    --to=wilde@sha-bang.de \
    --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.