3
submitted 2 years ago* (last edited 2 years ago) by highduc@lemmy.ml to c/emacs@lemmy.ml

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?

top 4 comments
sorted by: hot top new old
[-] Shareni@programming.dev 2 points 2 years ago

Is there a better way of starting the emacs daemon?

I just use the DE/WM autostart functionality

[-] flux@lemmy.ml 1 points 2 years ago

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

[-] nmtake@lemm.ee 1 points 2 years ago

"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.

[-] eldavi@lemmy.ml 1 points 2 years ago

Have you set the multiuser target as a prerequisite already?

this post was submitted on 05 Sep 2024
3 points (100.0% liked)

Emacs

2930 readers
1 users here now

Our infinitely powerful editor.

founded 6 years ago
MODERATORS