Reputation: 718
I'm trying to open a new emacs frame by connecting to an existing emacs daemon with the below command, but it fails to open the display.
This is the command:
emacsclient -c
The output is:
Waiting for Emacs... ERROR: Display :1 can't be opened
The $DISPLAY is :0
No idea why the error message indicates display :1
I even tried emacsclient -c -d :0 with the same result.
Other X programs start without problems, e.g. xclock, xeyes, etc.
Any ideas?
Thanks.
Upvotes: 0
Views: 1890
Reputation: 742
You may want to check out the answer to this question:
It could be due to the fact that emacsclient needs the same $XAUTHORITY as the emacsserver process, but if you started the emacs server process on your desktop or in another session, it may not have put the XAUTHORITY credientals where emacsclient is looking for it.
Upvotes: 0
Reputation: 718
It worked after restarting emacs daemon, but still not sure why didn't work the first time...
Upvotes: 1