mirror of https://github.com/buggins/dlangui.git
Merge pull request #469 from FreeSlave/showInFileManager_detached
Avoid zombies processes on linux with showInFileManager when phobos h…
This commit is contained in:
commit
3fa05a3c7a
|
@ -431,8 +431,12 @@ import dlangui.core.logger;
|
||||||
errFile = std.stdio.stderr;
|
errFile = std.stdio.stderr;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: process should start detached.
|
auto processConfig = Config.none;
|
||||||
spawnProcess(fileManagerArgs, inFile, outFile, errFile);
|
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"));
|
string configHome = environment.get("XDG_CONFIG_HOME", buildPath(environment.get("HOME"), ".config"));
|
||||||
|
|
Loading…
Reference in New Issue