Osx environment variables
-
wrote on 27 Jul 2011, 17:44 last edited by
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.
-
wrote on 27 Jul 2011, 22:13 last edited by
Do you run app from same shell? If not then environments can be different.
-
wrote on 27 Jul 2011, 22:16 last edited by
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?
-
wrote on 27 Jul 2011, 22:20 last edited by
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.
-
wrote on 27 Jul 2011, 22:25 last edited by
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.
5/5