Skip to content

Commit

Permalink
fix recent refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
elfmz committed Dec 1, 2024
1 parent 1199c48 commit 4f044a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions WinPort/src/Backend/NotifySh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions WinPort/src/Backend/WX/wxMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>(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
}
Expand Down

0 comments on commit 4f044a5

Please sign in to comment.