launch_daemon: Add env vars from sourced files to correct list.
The environment variables were always added to the static environment list instead of the one supplied as argument. This worked for targets, as there the scripts are evaluated before the static environment is used. For services and jobs this isn't the case, causing sourced environment variables to be missing.
This commit is contained in:
parent
44884f88fa
commit
f6b2da0a71
@ -172,7 +172,7 @@ BaseJob::GetSourceFilesEnvironment(BStringList& environment)
|
||||
{
|
||||
int32 count = fSourceFiles.CountStrings();
|
||||
for (int32 index = 0; index < count; index++) {
|
||||
_GetSourceFileEnvironment(fSourceFiles.StringAt(index), fEnvironment);
|
||||
_GetSourceFileEnvironment(fSourceFiles.StringAt(index), environment);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user