mirror of https://github.com/buggins/dlangide.git
run program support under linux
This commit is contained in:
parent
3fb4dce4a1
commit
78a78ec070
|
@ -213,7 +213,6 @@
|
||||||
<Compile Include="src\dlangide\ui\settings.d" />
|
<Compile Include="src\dlangide\ui\settings.d" />
|
||||||
<Compile Include="src\dlangide\ui\wspanel.d" />
|
<Compile Include="src\dlangide\ui\wspanel.d" />
|
||||||
<Compile Include="src\dlangide\ui\newfile.d" />
|
<Compile Include="src\dlangide\ui\newfile.d" />
|
||||||
<Compile Include="src\dlangide\ui\newproject.d" />
|
|
||||||
<Compile Include="src\dlangide\workspace\project.d" />
|
<Compile Include="src\dlangide\workspace\project.d" />
|
||||||
<Compile Include="src\dlangide\workspace\workspace.d" />
|
<Compile Include="src\dlangide\workspace\workspace.d" />
|
||||||
<Compile Include="src\ddebug\common\debugger.d" />
|
<Compile Include="src\ddebug\common\debugger.d" />
|
||||||
|
|
|
@ -80,7 +80,6 @@ class ProgramExecutionNoDebug : Thread, ProgramExecution {
|
||||||
// external console support
|
// external console support
|
||||||
if (!_externalConsole.empty) {
|
if (!_externalConsole.empty) {
|
||||||
string cmdline = escapeShellCommand(params);
|
string cmdline = escapeShellCommand(params);
|
||||||
cmdline = escapeShellFileName(cmdline);
|
|
||||||
params.length = 0;
|
params.length = 0;
|
||||||
params ~= _externalConsole;
|
params ~= _externalConsole;
|
||||||
params ~= "-e";
|
params ~= "-e";
|
||||||
|
@ -90,6 +89,12 @@ class ProgramExecutionNoDebug : Thread, ProgramExecution {
|
||||||
File newstdin;
|
File newstdin;
|
||||||
File newstdout;
|
File newstdout;
|
||||||
File newstderr;
|
File newstderr;
|
||||||
|
version (Windows) {
|
||||||
|
} else {
|
||||||
|
newstdin = stdin;
|
||||||
|
newstdout = stdout;
|
||||||
|
newstderr = stderr;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
_pid = spawnProcess(params, newstdin, newstdout, newstderr, null, Config.none, _workDir);
|
_pid = spawnProcess(params, newstdin, newstdout, newstderr, null, Config.none, _workDir);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue