Skip to content

Commit

Permalink
Merge pull request #9 from Moisie2000/urbackupclientgui-macos-locatio…
Browse files Browse the repository at this point in the history
…n-update

urbackupclientgui is not in BINDIR on macOS
  • Loading branch information
uroni authored Jul 11, 2020
2 parents ff19c14 + b8f4116 commit 690cd1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TrayIcon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void runCommand(std::string cmd, std::string arg1)
sudo_prefix = sudo_app + " ";
}
#ifdef __APPLE__
std::string clientexecutable = ExtractFilePath(BINDIR)+"/urbackupclientgui";
wxString clientexecutable = wxStandardPaths::Get().GetExecutablePath();
wxExecute(sudo_prefix +"\""+ clientexecutable +"\" "+cmd+(arg1.empty()?std::string():(" "+arg1)), wxEXEC_ASYNC, NULL, NULL);
#else
wxExecute(sudo_prefix + BINDIR "/urbackupclientgui "+cmd+(arg1.empty()?std::string():(" "+arg1)), wxEXEC_ASYNC, NULL, NULL);
Expand Down

0 comments on commit 690cd1c

Please sign in to comment.