-
-
Notifications
You must be signed in to change notification settings - Fork 173
env variables are not passed to dart vm #165
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
Comments
I can not confirm this behavior - tested inside my flutter app print(Platform.resolvedExecutable);
print(Platform.environment['PATH']); works fine
|
From a first look it seems like EDIT: Seems like it works fine for me using debug & release mode with and without sudo. Can you try iterating through |
Okay, I'll test this |
|
The env variables defined in the host system are not passed to the dartvm.
Example:
This will output null.
Since you can't build a bundle with
--dart-define
, there is any way to pass a env variable to the flutter app?The text was updated successfully, but these errors were encountered: