aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2018-12-06 11:07:18 -0800
committerPaul Eggert2018-12-06 11:07:47 -0800
commitb1d7f19ae785ce7fa609bc57432d01cc23a3d49a (patch)
tree5a2a0c2c5bd171457b3668992d4dae2d5d38924c
parent46b810081165fecae5086b71fafdb3eb19c30df5 (diff)
downloademacs-b1d7f19ae785ce7fa609bc57432d01cc23a3d49a.tar.gz
emacs-b1d7f19ae785ce7fa609bc57432d01cc23a3d49a.zip
Mention unsetting XDG_RUNTIME_DIR in doc.
-rw-r--r--doc/misc/efaq.texi5
-rw-r--r--etc/NEWS2
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi
index d457267c248..19770455f10 100644
--- a/doc/misc/efaq.texi
+++ b/doc/misc/efaq.texi
@@ -2009,7 +2009,10 @@ When this is done, Emacs by default creates a Unix domain socket named
2009@file{server} in a well-known directory, typically 2009@file{server} in a well-known directory, typically
2010@file{$XDG_RUNTIME_DIR/emacs} if Emacs is running under an X Window System 2010@file{$XDG_RUNTIME_DIR/emacs} if Emacs is running under an X Window System
2011desktop and @file{$TMPDIR/emacs@var{userid}} otherwise. See the variable 2011desktop and @file{$TMPDIR/emacs@var{userid}} otherwise. See the variable
2012@code{server-socket-dir}. 2012@code{server-socket-dir}. Traditionally, Emacs used
2013@file{$TMPDIR/emacs@var{userid}} even when running under an X desktop;
2014if you prefer this traditional (and less-secure) behavior, unset
2015@env{XDG_RUNTIME_DIR} before invoking Emacs and @samp{emacsclient}.
2013 2016
2014To get your news reader, mail reader, etc., to invoke 2017To get your news reader, mail reader, etc., to invoke
2015@samp{emacsclient}, try setting the environment variable @code{EDITOR} 2018@samp{emacsclient}, try setting the environment variable @code{EDITOR}
diff --git a/etc/NEWS b/etc/NEWS
index 60cba9ed469..e7f2d606f8c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -133,6 +133,8 @@ to apply.
133as the directory for client/server sockets, if Emacs is running 133as the directory for client/server sockets, if Emacs is running
134under an X Window System desktop that sets the XDG_RUNTIME_DIR 134under an X Window System desktop that sets the XDG_RUNTIME_DIR
135environment variable to indicate where session sockets should go. 135environment variable to indicate where session sockets should go.
136To get the old and less-secure behavior, unset XDG_RUNTIME_DIR before
137invoking emacs and emacsclient.
136 138
137--- 139---
138*** When run by root, emacsclient no longer connects to non-root sockets. 140*** When run by root, emacsclient no longer connects to non-root sockets.