Re: Emacs Daemon as Service

2020-03-25 Thread Laurent Bercot

#!/usr/bin/execlineb -P
s6-setuidgid uros
emacs --fg-daemon --user uros
```
Though the server starts it cannot connect to the X display. I assume
there's an explicit way to handle this in s6.


 Here emacs is launched by your supervision tree, not your user
environment, so it doesn't have access to your DISPLAY variable.
Try giving it a -d :0 option?

--
 Laurent



Emacs Daemon as Service

2020-03-24 Thread Uros Perisic
Hi everyone,

I'm kind of stuck here. I'm trying to write an emacs service:
```
#!/usr/bin/execlineb -P
s6-setuidgid uros
emacs --fg-daemon --user uros
```
Though the server starts it cannot connect to the X display. I assume
there's an explicit way to handle this in s6.

Or should I start another supervision tree owned by me? If so how would
s6-rc talk to it? Does it always have to be specified on the command line?

I'm just hunting for best practices here, any help would be appreciated.

Best,
Uros