it is useful for us to find out how to solve it. we may bake in the best working option into the app.
It is not as hard as you think, environment variables are a basic thing, just start the app from the terminal by it's file path and write the variables in front:
var_name=value path/to/my/program
No compiling involved.