Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running multiple instances #15

Closed
doftorul opened this issue Dec 11, 2020 · 7 comments
Closed

Running multiple instances #15

doftorul opened this issue Dec 11, 2020 · 7 comments

Comments

@doftorul
Copy link

Hi Eugen and many thanks for your keen and fast help !

If i were to run 2 instances for 2 different accounts, other than running it from source, how can i install a 2nd instance on the same machine ?

@eugeneglova
Copy link
Owner

good question :-) I will add support for this

@doftorul
Copy link
Author

Electron is not very versatile for multi-instance of the same installed program with separate folders for the actual program and where the data is stored.

@doftorul
Copy link
Author

If you would commit the latest source that is in the binary, i can run multiple instances from source

@eugeneglova
Copy link
Owner

the reason it doesn't work as both uses one config file so if you save api keys in one instance it will modify it for other, as config file stored in one place per program name in system folders. I use electron-store npm package for configuration, so I will add configurable cwd or name for config path or filename not sure how to allow to modify it for now, but I will find out :)
https://github.com/sindresorhus/electron-store#cwd

@doftorul
Copy link
Author

I remember i did something similar a while back with a Quasar/Vue app packaged with electron and in that one i just allowed the selection of which config/params file the user should use.

Maybe in the API keys tab you can add a button to select the config file ?

@eugeneglova
Copy link
Owner

the problem I need to know that info before loading config. I thought to add command line argument like --cwd=app2 but it's not good UX for GUI users

@eugeneglova
Copy link
Owner

eugeneglova commented Jan 22, 2021

I added partial multi account support, partial because telegram command will use only default account
https://gumroad.com/l/WWLFh 1.2.7
you should be able to get updated version by this link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants