You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
We are starting a cli tool from an electron app with sudo-prompt. To pass on environment variables we tried using the options.env property.
For what i can understand this wont work on Linux. pkexec is removing all environment variables before running command, so to get around this we added the environment variables at the beginning of our call, something like this:
Firstly, thank you for a great library!
We are starting a cli tool from an electron app with sudo-prompt. To pass on environment variables we tried using the
options.env
property.For what i can understand this wont work on Linux.
pkexec
is removing all environment variables before running command, so to get around this we added the environment variables at the beginning of our call, something like this:This works:
This does not work:
Is there anything I'm doing wrong or have misunderstood?
The text was updated successfully, but these errors were encountered: