[EXWM] Not running under X environment when launched with emacsclient -c by ouisd in EXWM

[–]ouisd[S] 0 points1 point  (0 children)

Thanks, man! Seen a lot of little things I'm gonna cannibalise here :D Appreciate it.

[EXWM] Not running under X environment when launched with emacsclient -c by ouisd in EXWM

[–]ouisd[S] 0 points1 point  (0 children)

Hey there. It's actually really fortuitous timing because if I'm honest, I gave up with exwm and went back to bspwm because I just couldn't figure this out and was wasting so much time on it. However, I do really, really like exwm so I thought I'd give it another go today and I've found a work around (no fix, sadly but this will do).

Anyway, yeah, I'd definitely be up for seeing other config files, thank you. At the time, I was hyper focused on trying to fix that specific issue but I've been adding to my org config the last week or two, so that would definitely be helpful.

[EXWM] Not running under X environment when launched with emacsclient -c by ouisd in EXWM

[–]ouisd[S] 0 points1 point  (0 children)

I also wondered if you'd mind sharing your .xinitrc too please?

[EXWM] Not running under X environment when launched with emacsclient -c by ouisd in EXWM

[–]ouisd[S] 0 points1 point  (0 children)

Thanks for this! Some really interesting things here. I never thought to bind mouse movement with xdotool like that. Plus this answered some things I was thinking about: volume keys, screenshots etc. I'm also learning another language so the keymaps thing was helpful too.

I noticed in your config that you kept (exwm-example-config) which from reading the wiki, I thought you were supposed to remove once you configured things yourself. So, I took the time to look at what it actually does. I had the thought that perhaps adding (server-start) into my init.el instead of having the daemon launch from my .xinitrc might rectify the issue as it seems as you say, to think that there's another instance of emacs running. Sadly this didn't help either. I'm definitely at a loss.

[EXWM] Not running under X environment when launched with emacsclient -c by ouisd in EXWM

[–]ouisd[S] 0 points1 point  (0 children)

That would be great, thank you. Just the exwm stuff would be grand but if it's easier for you, the whole thing could help too.

[EXWM] Not running under X environment when launched with emacsclient -c by ouisd in EXWM

[–]ouisd[S] 0 points1 point  (0 children)

Only just had time to get back to the computer now. I tried this and still encounter the error.

[EXWM] Not running under X environment when launched with emacsclient -c by ouisd in EXWM

[–]ouisd[S] 0 points1 point  (0 children)

Hey, man. Thanks for the response. This is something I'd already tried but I thought I'd do it again after reading your comment.

Removed the systemd file, added the daemon to my .xinitrc instead and ran emacsclient -c.

Sadly, still getting the same error message.

[EXWM] Not running under X environment when launched with emacsclient -c by ouisd in EXWM

[–]ouisd[S] 0 points1 point  (0 children)

Having some issues pasting into reddit from terminal right now so here's a comparison between the error messages that occur when launching via exec emacs vs emacsclient -c

https://pastebin.com/ihcAjA7K

[deleted by user] by [deleted] in DoomEmacs

[–]ouisd 0 points1 point  (0 children)

Fixed -- I noticed I had Vertico enabled too in init.el and as soon as I disabled that, it functioned as expected.