diff --git a/WinPort/src/Backend/NotifySh.cpp b/WinPort/src/Backend/NotifySh.cpp index 85f4cec67..51c320e3f 100644 --- a/WinPort/src/Backend/NotifySh.cpp +++ b/WinPort/src/Backend/NotifySh.cpp @@ -10,13 +10,12 @@ static std::string GetNotifySH(const char *far2l_path) { std::string out(far2l_path); - if (TranslateInstallPath_Bin2Share(out)) { - out+= APP_BASENAME "/"; + ReplaceFileNamePart(out, APP_BASENAME "/notify.sh"); + } else { + ReplaceFileNamePart(out, "notify.sh"); } - out+= "notify.sh"; - struct stat s; if (stat(out.c_str(), &s) == 0) { return out; diff --git a/WinPort/src/Backend/WX/wxMain.cpp b/WinPort/src/Backend/WX/wxMain.cpp index 10eb4e464..62155402d 100644 --- a/WinPort/src/Backend/WX/wxMain.cpp +++ b/WinPort/src/Backend/WX/wxMain.cpp @@ -1946,8 +1946,7 @@ void WinPortPanel::OnConsoleDisplayNotification(const wchar_t *title, const wcha auto fn = std::bind(MacDisplayNotify, str_title.c_str(), str_text.c_str()); CallInMain(fn); #else - wxFileName fn(wxStandardPaths::Get().GetExecutablePath()); - wxString fn_str = fn.GetPath(wxPATH_GET_VOLUME | wxPATH_GET_SEPARATOR); + wxString fn_str = wxStandardPaths::Get().GetExecutablePath(); Far2l_NotifySh(fn_str.mb_str(), str_title.c_str(), str_text.c_str()); #endif }