1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-23 00:10:48 -08:00

Mention EMACS_SOCKET_NAME, not XDG_RUNTIME_DIR.

This commit is contained in:
Paul Eggert 2018-12-06 12:59:42 -08:00
parent b1d7f19ae7
commit 0e8e5da1e8
2 changed files with 8 additions and 4 deletions

View file

@ -2011,8 +2011,12 @@ When this is done, Emacs by default creates a Unix domain socket named
desktop and @file{$TMPDIR/emacs@var{userid}} otherwise. See the variable
@code{server-socket-dir}. Traditionally, Emacs used
@file{$TMPDIR/emacs@var{userid}} even when running under an X desktop;
if you prefer this traditional (and less-secure) behavior, unset
@env{XDG_RUNTIME_DIR} before invoking Emacs and @samp{emacsclient}.
if you prefer this traditional (and less-secure) behavior, you
can set the environment variable @env{EMACS_SOCKET_NAME} to
@samp{$TMPDIR/emacs@var{userid}/server} before invoking Emacs and
@samp{emacsclient}, although it will be your responsibility to create
the directory @samp{$TMPDIR/emacs@var{userid}} with appropriate
ownership and permissions.
To get your news reader, mail reader, etc., to invoke
@samp{emacsclient}, try setting the environment variable @code{EDITOR}

View file

@ -133,8 +133,8 @@ to apply.
as the directory for client/server sockets, if Emacs is running
under an X Window System desktop that sets the XDG_RUNTIME_DIR
environment variable to indicate where session sockets should go.
To get the old and less-secure behavior, unset XDG_RUNTIME_DIR before
invoking emacs and emacsclient.
To get the old, less-secure behavior, you can set the
EMACS_SOCKET_NAME environment variable to an appropriate value.
---
*** When run by root, emacsclient no longer connects to non-root sockets.