Merge pull request #469 from FreeSlave/showInFileManager_detached

Avoid zombies processes on linux with showInFileManager when phobos h…
This commit is contained in:
Vadim Lopatin 2017-10-01 20:22:42 +03:00 committed by GitHub
commit 3fa05a3c7a
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"));