29 const wchar_t* args[] = { L
"open", aPath.wc_str(),
nullptr };
30 return wxExecute(
const_cast<wchar_t**
>( args ) ) != -1;
32#elif defined( __WXGTK__ ) && !wxCHECK_VERSION( 3, 1, 1 )
38 wxString PATH, xdg_open;
40 if( wxGetEnv(
"PATH", &PATH ) && wxFindFileInPath( &xdg_open, PATH,
"xdg-open" ) )
43 argv[0] = xdg_open.fn_str();
44 argv[1] = aPath.fn_str();
47 if( wxExecute(
const_cast<char**
>( argv ) ) )
55 wxString
path( aPath );
56 return wxLaunchDefaultApplication(
path );
bool LaunchExternal(const wxString &aPath)
Launches the given file or folder in the host OS.