Inve1951 / BetterDiscordStuff

my BD plugins & themes, focused on enhancing user experience
Other
293 stars 535 forks source link

Multi Instance is broke after update #197

Open bboyaztec opened 2 years ago

bboyaztec commented 2 years ago

Discord pushed out a new update. Plugin is no longer functional.

Inve1951 commented 2 years ago

Yes, but in fact this is not due to Discord's update but due to the electron-17 branch having been merged into the BetterDiscord 1.7.0 release, which removes direct NodeJS API access from the renderer process and polyfills most of what plugins use. Multi-Instance depends on the child_process API, which has not been polyfilled for security reasons.

I think that the functionality of Multi-Instance is something a plugin should be able to provide but as of now there is no fix and there probably won't be in the near future. I'll try to discuss this with Zerebos and Strencher again at some point - maybe we can come up with something.

Surely not as convenient but you can create a shortcut to Discord.exe (assuming Windows) and pass --multi-instance as an extra parameter. Running Discord from this shortcut will allow for a second window.

bboyaztec commented 2 years ago

Thanks for the shortcut tip. Good solution for my needs here.

SmolAlli commented 2 years ago

Also if you're interested, OpenAsar (which is compatible with BD) has multi-instance

KiraFR commented 1 year ago

I created a powershell script file which contains : Start-Process -FilePath "DIR/TO/DISCORD/app-*/Discord.exe" -ArgumentList "--multi-instance" and i can execute it from my desktop

I prefered the script because after each update, the name of the folder "app-X.X.XXXX" change, so with this script, it detect automatically the exe

Tell me if there is a better solution :D

auralicia commented 1 year ago

Also if you're interested, OpenAsar (which is compatible with BD) has multi-instance

hello, cna u explain more on how to use it? and which should i install? theres stable, PTB, and canary.

clavzno commented 1 year ago

I created a powershell script file which contains : Start-Process -FilePath "DIR/TO/DISCORD/app-*/Discord.exe" -ArgumentList "--multi-instance" and i can execute it from my desktop

I prefered the script because after each update, the name of the folder "app-X.X.XXXX" change, so with this script, it detect automatically the exe

Tell me if there is a better solution :D

how does this work?