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

xoauth does not output to environment variables on MS Windows #13

Open
DavidHChamp opened this issue Jun 22, 2020 · 2 comments
Open

xoauth does not output to environment variables on MS Windows #13

DavidHChamp opened this issue Jun 22, 2020 · 2 comments

Comments

@DavidHChamp
Copy link

I have implemented xoauth on Windows 10.

It is working except that the '--env' / '-e' switches do not export to environment variables.
I have also tried creating the variables in advance on a user account and as system variables but it still does not enter data to them.

Please can this be fixed as the work-around I have via exporting to a file is not robust enough.

@JoshBarr
Copy link
Contributor

JoshBarr commented Sep 2, 2020

As windows lacks an eval() equivalent, I don't think there's an easy way to do this. Even on unix systems you need to eval the output, as a process can only set env_vars for itself and any child processes.

We could add a feature have xoauth generate the temp file, e.g by performing xoauth token -o ./my-env.bat or similar?

@DavidHChamp
Copy link
Author

DavidHChamp commented Sep 3, 2020 via email

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