Set environment variable for the process before startup

后端 未结 2 858
轻奢々
轻奢々 2021-01-15 18:14

I have the following situation:

I have Mac OS bundle with application which uses some 3rd party dynamic libraries and those libraries depend on some environment vari

2条回答
  •  春和景丽
    2021-01-15 19:06

    I am not sure if the following works because I don't have such an app to try. The idea is to set the environment variable from the terminal, then call your application:

    ENV_VAR=something open -a YourApplication
    

提交回复
热议问题