diff options
| author | Paul Eggert | 2018-12-06 11:07:18 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-12-06 11:07:47 -0800 |
| commit | b1d7f19ae785ce7fa609bc57432d01cc23a3d49a (patch) | |
| tree | 5a2a0c2c5bd171457b3668992d4dae2d5d38924c | |
| parent | 46b810081165fecae5086b71fafdb3eb19c30df5 (diff) | |
| download | emacs-b1d7f19ae785ce7fa609bc57432d01cc23a3d49a.tar.gz emacs-b1d7f19ae785ce7fa609bc57432d01cc23a3d49a.zip | |
Mention unsetting XDG_RUNTIME_DIR in doc.
| -rw-r--r-- | doc/misc/efaq.texi | 5 | ||||
| -rw-r--r-- | etc/NEWS | 2 |
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 |
| 2011 | desktop and @file{$TMPDIR/emacs@var{userid}} otherwise. See the variable | 2011 | desktop 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; | ||
| 2014 | if you prefer this traditional (and less-secure) behavior, unset | ||
| 2015 | @env{XDG_RUNTIME_DIR} before invoking Emacs and @samp{emacsclient}. | ||
| 2013 | 2016 | ||
| 2014 | To get your news reader, mail reader, etc., to invoke | 2017 | To 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} |
| @@ -133,6 +133,8 @@ to apply. | |||
| 133 | as the directory for client/server sockets, if Emacs is running | 133 | as the directory for client/server sockets, if Emacs is running |
| 134 | under an X Window System desktop that sets the XDG_RUNTIME_DIR | 134 | under an X Window System desktop that sets the XDG_RUNTIME_DIR |
| 135 | environment variable to indicate where session sockets should go. | 135 | environment variable to indicate where session sockets should go. |
| 136 | To get the old and less-secure behavior, unset XDG_RUNTIME_DIR before | ||
| 137 | invoking 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. |