On 2018-08-08 03:13:59 +0000, J. Smith wrote: > This is not an Emacs bug (or a bug at all) IMO. See eg bug#766464 > and its many duplicates, or the summary from bug#827639: > > The problem is that you are using su to start a X/GNOME application as > root. su does not clear the environment, so XDG_RUNTIME_DIR points to > your users path, and the application running with root privileges > changes the permissions. > > Please stop using su (without -l) or running X apps as root.
"su -l" is not a solution as it reset the current working directory. And one should still be able to run X applications after su. It could be a bug in su, which doesn't clean up enough by default: it does for HOME, and XDG_RUNTIME_DIR is in the same class. But in any case, emacs shouldn't create files/directories if the user hasn't explicitly asked it to do that. Note that I haven't even tried to change the config from Emacs. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)