So, I'm trying to set up emacs as a server but I'm having trouble getting it to work from the terminal. If I run emacs --daemon on some terminal I can connect to it if I run the emacsclient from that same terminal, but if I open a new terminal the emacsclient will not find the server. Things seem to work well if I run emacsclient from the launcher.
I am running
emacsclient -a '' -t
The client says:
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
Any ideas of what could be happening?
I am using ubuntu 17.04 with gnome/i3 if that matters.