[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing the MIT-MAGIC-COOKIE-1 used by emacs --server
From: |
Stefan Monnier |
Subject: |
Re: Changing the MIT-MAGIC-COOKIE-1 used by emacs --server |
Date: |
Tue, 24 Mar 2009 07:33:17 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) |
> I made a naive attempt by
> (setenv "XAUTHORITY" "/path/to/new/xauth-file")
> but this didn't work...
The way it is expected to work is: XAUTHORITY is unset (i.e. points to
~/.Xauthority) and all keys are stored in ~/.Xauthority. The `xauth'
command is used to add/remove keys to/from it.
> - start an X11 server with -auth
> (which is what most display-managers or startx do nowadays)
Yes, most display managers do that to start the display, but when
someone logs in they also adds the display's key to the user's
~/.Xauthority file, so the XAUTHORITY var doesn't need to be set.
Stefan