The Wayback Machine - https://web.archive.org/web/20200911011752/https://github.com/juce-framework/JUCE/pull/706
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

Better environment control #706

Open
wants to merge 4 commits into
base: juce6
from

Conversation

@kunitoki
Copy link

kunitoki commented Apr 25, 2020

Add support for better environment variables in the framework, because since today it was not possible to start a process and control which environment should have:

  • Added functions to SystemStats to allow getting and changing the environment:
bool setEnvironmentVariable(const String& name, const String& value)

bool removeEnvironmentVariable(const String& name)

StringPairArray getEnvironmentVariables()
  • Added functions to ChildProcess to pass the environment variables the child process should retain:
bool start (const String& command, const StringPairArray& environment, int streamFlags = wantStdOut | wantStdErr)
bool start (const StringArray& arguments, const StringPairArray& environment, int streamFlags = wantStdOut | wantStdErr)
  • Added a function to Process to pass the environment variables the process spawned should retain:
static bool JUCE_CALLTYPE openDocument (
    const String& documentURL,
    const String& parameters,
    const StringPairArray& environment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.