diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index 9b5d7cac6b..57f68bc340 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -943,7 +943,8 @@ bool wxLaunchDefaultApplication(const wxString& document, int flags) #ifdef __WXMAC__ static const char * const OPEN_CMD = "/usr/bin/open"; - if ( wxFileExists(OPEN_CMD) && wxExecute(OPEN_CMD + " " + document) ) + if ( wxFileExists(OPEN_CMD) && + wxExecute(wxString(OPEN_CMD) + " " + document) ) return true; #elif defined(__UNIX__) // Our best best is to use xdg-open from freedesktop.org cross-desktop