using environment vars in run params?
-
If i edit the kit to include some environment vars, like this:
see those two vars?
OS_NAME_LONG
andOS_NAME_SHORT
.now, can i use them in my RUN params, like this?
i would expect so, run env is based on build env. build env is based on kit env, so it should work? but it doesn't. and yes i tried using
BuildConfig:Env:
andRunConfig:Env:
prefixes too, to no avail. -
yes, a workaround is to reference the var this way:
%{ActiveProject:BuildConfig:Env:OS_NAME_SHORT}
however THE SOLUTION wold be if Qt Creator were fixed so that this worked:
%{Env:OS_NAME_SHORT}
-
really nobody has any idea about this?
-
would you EXPECT this to work?
is this a bug?
-
Yes, All of the other variables expand correctly
-
bump
this is still failing in Qt Creator 6.0.0 -
Does the fix for this issue work here? https://forum.qt.io/topic/122881/using-environment-vars-in-build-params
-
yes, a workaround is to reference the var this way:
%{ActiveProject:BuildConfig:Env:OS_NAME_SHORT}
however THE SOLUTION wold be if Qt Creator were fixed so that this worked:
%{Env:OS_NAME_SHORT}