Avoid zombies processes on linux with showInFileManager when phobos has Config.detached

This commit is contained in:
Roman Chistokhodov 2017-10-01 04:14:09 +03:00
parent 5584362bd8
commit b0aeb03a3c
1 changed files with 6 additions and 2 deletions

View File

@ -431,8 +431,12 @@ import dlangui.core.logger;
errFile = std.stdio.stderr;
}
// TODO: process should start detached.
spawnProcess(fileManagerArgs, inFile, outFile, errFile);
auto processConfig = Config.none;
static if (is(typeof(Config.detached)))
{
processConfig |= Config.detached;
}
spawnProcess(fileManagerArgs, inFile, outFile, errFile, null, processConfig);
}
string configHome = environment.get("XDG_CONFIG_HOME", buildPath(environment.get("HOME"), ".config"));