Skip to content

Commit

Permalink
fix #37
Browse files Browse the repository at this point in the history
  • Loading branch information
rexdf committed Dec 17, 2018
1 parent fe90c6b commit 972a5a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CommandTrayHost/configure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2731,7 +2731,7 @@ void create_process(
crontab_log(crontab_ref, 0, 0, jsp["name"].get<std::string>().c_str(), buffer, __FUNCTION__, 0, 1);
}

LOGMESSAGE(L"%s\n", commandLine);
LOGMESSAGE(L"%s\n%s\n", commandLine, working_directory);

// https://stackoverflow.com/questions/53208/how-do-i-automatically-destroy-child-processes-in-windows
// Launch child process - example is notepad.exe
Expand Down
5 changes: 5 additions & 0 deletions CommandTrayHost/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ std::wstring get_abs_path(const std::wstring& path_wstring, const std::wstring&
}
return abs_path;
}
else if(path_wstring == L"")
{
PathRemoveFileSpec(abs_path);
return abs_path;
}
return path_wstring;
}

Expand Down

0 comments on commit 972a5a5

Please sign in to comment.