Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Osx environment variables



  • Does anyone have some insight as to why the result from qgetenv("PATH") is different then if I drop to a shell and look at PATH using "env"?

    Thanks.



  • Do you run app from same shell? If not then environments can be different.



  • No, my app is run from the desktop; I was under the impression the desktop shared the same environment as Terminal but this appears not to be the case. Any idea how to get the PATH off the default environment used when Terminal is started?



  • if you start it from desktop (not from qt creator or from other app with changed env) and you start shell without any additional env changes then I think envs should be identical.



  • Ah.. Just noticed the path values I am hoping to find are being set in my .bash_profile; I have should checked there first.

    Thanks.


Log in to reply