Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.ml
emacs·Emacsbyhighduc

Issues with daemon as systemd user unit

Hi!

I'm trying to run the emacs daemon as a systemd user unit, and I'm seeing this error when trying to launch the GUI client:

Authorization required, but no authorization protocol specified

From what I've seen online it might be due to it trying to start before I'm logged in or something like that.
It does work after restarting the unit but I don't want to do that every time.

Anyone else see this before? Any ideas for a fix? Is there a better way of starting the emacs daemon?

View original on lemmy.ml
3

4 replies

Is there a better way of starting the emacs daemon?

I just use the DE/WM autostart functionality

2

"emacsclient --alternate-editor=''" may work. If you need to solve the systemd issue, please post "systemctl --user cat emacs"(assuming the unit is "emacs") here.

1

Have you set the multiuser target as a prerequisite already?

1

I haven't done it, but you could try socket activation.

1

You reached the end

Issues with daemon as systemd user unit | Spyke