]> git.eshelyaron.com Git - emacs.git/commitdiff
Mention unsetting XDG_RUNTIME_DIR in doc.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 6 Dec 2018 19:07:18 +0000 (11:07 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 6 Dec 2018 19:07:47 +0000 (11:07 -0800)
doc/misc/efaq.texi
etc/NEWS

index d457267c2489456fbb2f46405084a96ce87aac8b..19770455f103e638f1831bb67f2d76e3b5a5ecf7 100644 (file)
@@ -2009,7 +2009,10 @@ When this is done, Emacs by default creates a Unix domain socket named
 @file{server} in a well-known directory, typically
 @file{$XDG_RUNTIME_DIR/emacs} if Emacs is running under an X Window System
 desktop and @file{$TMPDIR/emacs@var{userid}} otherwise.  See the variable
-@code{server-socket-dir}.
+@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}.
 
 To get your news reader, mail reader, etc., to invoke
 @samp{emacsclient}, try setting the environment variable @code{EDITOR}
index 60cba9ed469a0a8d1789b218837ff1574cc9dec8..e7f2d606f8c8f0b65c9bb6d8a340da8977cbbfd0 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -133,6 +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.
 
 ---
 *** When run by root, emacsclient no longer connects to non-root sockets.