diff --git a/source/app.d b/source/app.d index 547652e..a0692c2 100644 --- a/source/app.d +++ b/source/app.d @@ -163,7 +163,10 @@ auto rnd = to!string(uniform(uint.min, uint.max)) ~ "-"; auto tmp = environment.get("TEMP"); if( !tmp.length ) tmp = environment.get("TMP"); - if( !tmp.length ) tmp = "."; + if( !tmp.length ){ + version(Posix) tmp = "/tmp"; + else tmp = "."; + } run_exe_file = tmp~"\\.rdmd\\source\\"~rnd~outfile; flags ~= "-of"~run_exe_file; }