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

Profile switching fails #2

Open
jimni opened this issue May 26, 2024 · 2 comments
Open

Profile switching fails #2

jimni opened this issue May 26, 2024 · 2 comments

Comments

@jimni
Copy link

jimni commented May 26, 2024

I think switching between profiles is not working correctly.
If we always use twinkle -c to start the Twinkle app, it will, by default, use twinkle.cfg (regardless of the start_user_profile variable).

To make it work, we need to invoke something like twinkle -f 913842 -c where 913842 is the profile's name (and the config file's name as well). Better yet, Twinkle can run multiple profiles simultaneously like this: twinkle -f 913842 296346 -c. And after running it this way, we can switch between profiles with every command: twinkle --set-profile 913842 --call +123456789

@roblamrod
Copy link

Hello @jimni, thank you for your comment.

There is another function instead of set_account(username, domain, password).
You can use set_account_by_file(path) in order to import any user profile config file you want.

Any other suggestions are welcome, best regards.

@jimni
Copy link
Author

jimni commented May 30, 2024

I don't think it fixes the issue because the problem is not related to creating config files; it appears in the later stage when you want Twinkle to apply a specific config file, which it will not do so far as you keep using the start_user_profile variable (I think this variable only applies to GUI mode of Twinkle)

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