From b8f411669677345bccf486174a08312ac272d226 Mon Sep 17 00:00:00 2001 From: Moisie2000 Date: Tue, 7 Jul 2020 06:36:02 +0100 Subject: [PATCH] urbackupclientgui is not in BINDIR on macOS, so need to point to itself --- TrayIcon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TrayIcon.cpp b/TrayIcon.cpp index b387c70..a102b7f 100644 --- a/TrayIcon.cpp +++ b/TrayIcon.cpp @@ -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);