[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacsclient socket ownership

From: Glenn Morris
Subject: Re: emacsclient socket ownership
Date: Wed, 05 Dec 2018 14:38:19 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Michael Heerdegen wrote:

> What has got installed seems to prevent me to start a server from an
> Emacs started with gksu unless I change server-socket-dir in .emacs of
> that user:
>   signal(file-error ("Creating directory" "Permission denied"
>    "/run/user/1000/emacs"))
>   files--ensure-directory("/run/user/1000/emacs")
>   make-directory("/run/user/1000/emacs" t)
>   server-ensure-safe-dir("/run/user/1000/emacs")
>   server-start(nil inhibit-prompt)
> Internet searching seems to indicate that XDG_RUNTIME_DIR is not always
> set by such tools. 

Maybe you need to use gksu -l, though you might then have X auth issues.

> Is XDG_RUNTIME_DIR really a good choice?

It is the right directory to use for these things, yes.

Running a modern graphical application as another user is a complicated
business. I wouldn't do it personally.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]