elcord icon indicating copy to clipboard operation
elcord copied to clipboard

Support for multiple clients/accounts

Open jhilker98 opened this issue 3 years ago • 5 comments

Hey there,

I've just set this up and I really like using it so far! Thanks for writing it.

I usually have 2 clients running with my 2 accounts (long story); would it be possible to set the elcord-client-id to a list to apply elcord to each client?

jhilker98 avatar Oct 14 '21 01:10 jhilker98

Hey, elcord-client-id is the Discord application (in this case elcord)'s client id. Maybe a flag could be set to try all 10 possible Discord clients? Either way, there would need to be a lot of reworking for this to work.

Actually, before this happens we really ought to actually perform the client search: https://github.com/Mstrodl/elcord/blob/master/elcord.el#L215-L216 If the user opens stable then PTB and closes stable, elcord will never discover PTB. When a new instance of Discord is started, Discord will allocate discord-ipc-N, with N starting at 0 and ending at 9.

Mstrodl avatar Oct 14 '21 13:10 Mstrodl

I could see something like that working.

jhilker98 avatar Oct 14 '21 13:10 jhilker98

Sorry, I'm pretty new to Elisp as a whole, how should I go about setting up that flag?

jhilker98 avatar Oct 14 '21 16:10 jhilker98

@jhilker1 This functionality would need to be developed, right now there's no flag that you'd be able to set. And it's not a trivial ask

Zulu-Inuoe avatar Oct 14 '21 17:10 Zulu-Inuoe

Oh, alright. Sorry about that, I wasn't sure whether an end user could set that up or not.

On Thu, Oct 14, 2021, 1:06 PM Wilfredo Velázquez-Rodríguez < @.***> wrote:

@jhilker1 https://github.com/jhilker1 This functionality would need to be developed, right now there's no flag that you'd be able to set. And it's not a trivial ask

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Mstrodl/elcord/issues/56#issuecomment-943550669, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACY54OGWHPEKLTG7TPVKGXLUG4EYRANCNFSM5F6QKV2A .

jhilker98 avatar Oct 14 '21 17:10 jhilker98