05nelsonm / kmp-tor

Kotlin Multiplatform Library for embedding Tor into your applications
Apache License 2.0
33 stars 5 forks source link

Add ability to customize process environment variables via `TorRuntime.Environment.Builder` #400

Closed 05nelsonm closed 3 months ago

05nelsonm commented 3 months ago

This will also move declaring HOME env variable from TorProcess to TorRuntime.Environment

e.g.

Process.Builder(command = paths.tor.path)
    .environment { putAll(runtime.environment.processEnv) }
    // ...
    .spawn()