mirror of https://github.com/buggins/dlangui.git
Avoid zombies processes on linux with showInFileManager when phobos has Config.detached
This commit is contained in:
parent
5584362bd8
commit
b0aeb03a3c
|
@ -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