Mstrodl / elcord

Discord Rich Presence / Gamebridge support for Emacs!
MIT License
191 stars 45 forks source link

Constantly disconnecting and reconnecting #70

Open egelja opened 2 years ago

egelja commented 2 years ago

So, this is pretty much the same issue as #48.

However, I am not using Spacemacs, just regular Emacs 28.1 I also am on Windows with the .NET 6.0 SDK, so I have a C# compiler. Running Powershell -NoProfile -ExecutionPolicy Bypass ./stdpipe.ps1 works.

Mstrodl commented 2 years ago

If you run that powershell script inside emacs (e.g. in M-x term) does it work? Could be that emacs has a different PATH or something

egelja commented 2 years ago

I had to use M-x eshell, but yes, it does work.

image

egelja commented 1 year ago

Ok so I may have figured something out

The path to stdpipe.ps1 has spaces in it. Could that be causing the problem?

This is the error on Emacs 28.2 image

Mstrodl commented 1 year ago

Maybe... Try without? I'm really not sure though sorry, I'm not a windows person :( If you can find a workaround I can probably fix the underlying issue though!

egelja commented 1 year ago

I can't really try without, my home dir has a space in it and I can't change it.

egelja commented 1 year ago

Oh never mind fixed it

elcord.el.patch

This just adds ' quotes around the path, and then prefixes with & to run the string as a command.

egelja commented 1 year ago

Hey, any update on this?

Mstrodl commented 1 year ago

If you submit it as a pull request I'd be happy to merge it