diff options
| author | Paul Eggert | 2018-12-06 12:59:42 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-12-06 13:00:14 -0800 |
| commit | 0e8e5da1e8da0752fc02bf590a17697af4c0afd3 (patch) | |
| tree | 1c1d5bce92b5d7061c4eb1a083e4df1bebc62c26 | |
| parent | b1d7f19ae785ce7fa609bc57432d01cc23a3d49a (diff) | |
| download | emacs-0e8e5da1e8da0752fc02bf590a17697af4c0afd3.tar.gz emacs-0e8e5da1e8da0752fc02bf590a17697af4c0afd3.zip | |
Mention EMACS_SOCKET_NAME, not XDG_RUNTIME_DIR.
| -rw-r--r-- | doc/misc/efaq.texi | 8 | ||||
| -rw-r--r-- | etc/NEWS | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi index 19770455f10..18a857f7dc1 100644 --- a/doc/misc/efaq.texi +++ b/doc/misc/efaq.texi | |||
| @@ -2011,8 +2011,12 @@ When this is done, Emacs by default creates a Unix domain socket named | |||
| 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}. Traditionally, Emacs used | 2012 | @code{server-socket-dir}. Traditionally, Emacs used |
| 2013 | @file{$TMPDIR/emacs@var{userid}} even when running under an X desktop; | 2013 | @file{$TMPDIR/emacs@var{userid}} even when running under an X desktop; |
| 2014 | if you prefer this traditional (and less-secure) behavior, unset | 2014 | if you prefer this traditional (and less-secure) behavior, you |
| 2015 | @env{XDG_RUNTIME_DIR} before invoking Emacs and @samp{emacsclient}. | 2015 | can set the environment variable @env{EMACS_SOCKET_NAME} to |
| 2016 | @samp{$TMPDIR/emacs@var{userid}/server} before invoking Emacs and | ||
| 2017 | @samp{emacsclient}, although it will be your responsibility to create | ||
| 2018 | the directory @samp{$TMPDIR/emacs@var{userid}} with appropriate | ||
| 2019 | ownership and permissions. | ||
| 2016 | 2020 | ||
| 2017 | To get your news reader, mail reader, etc., to invoke | 2021 | To get your news reader, mail reader, etc., to invoke |
| 2018 | @samp{emacsclient}, try setting the environment variable @code{EDITOR} | 2022 | @samp{emacsclient}, try setting the environment variable @code{EDITOR} |
| @@ -133,8 +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 | 136 | To get the old, less-secure behavior, you can set the |
| 137 | invoking emacs and emacsclient. | 137 | EMACS_SOCKET_NAME environment variable to an appropriate value. |
| 138 | 138 | ||
| 139 | --- | 139 | --- |
| 140 | *** 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. |