commit 849392909eff393db5a08c2c73e22bf5ed77c334 parent 8b7f62fc26bda8f4a504bfeab7a851e95ab2a5cc Author: fundamental <[email protected]> Date: Tue, 20 Sep 2016 21:24:54 -0400 Default To Using $PWD As File Home Dir Diffstat:
M | src/Misc/MiddleWare.cpp | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/Misc/MiddleWare.cpp b/src/Misc/MiddleWare.cpp @@ -1239,7 +1239,9 @@ static rtosc::Ports middwareSnoopPorts = { rEnd}, {"file_home_dir:", 0, 0, rBegin; - const char *home = getenv("HOME"); + const char *home = getenv("PWD"); + if(!home) + home = getenv("HOME"); if(!home) home = getenv("USERPROFILE"); if(!home)