[Qt-interest] Environment variables on Mac OS X
BOUCARD Olivier
boucard_olivier at yahoo.fr
Mon Oct 17 20:08:30 CEST 2011
Hi all,
I try to get the value of the HOSTNAME env. var. using QProcessEnvironment under Mac OS X Lion with Qt4.8 RC1.
But it does not work. When I type "echo $HOSTNAME" in my Terminal I have the value.
But when I launch my Qt app, which is a QCoreApplication, from the same Terminal, the value is empty.
Is this a "normal" behavior? Is there a workaround?
The same code works perfectly on Linux.
Thank you.
Olivier.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111017/16206414/attachment.html
More information about the Qt-interest-old
mailing list