Fix compil issues on GTK and MSW.

This commit is contained in:
jean-pierre charras 2021-09-19 17:27:32 +02:00
parent 6e7ce09572
commit bdb1231169
1 changed files with 9 additions and 1 deletions

View File

@ -146,6 +146,14 @@ int ExecuteFile( const wxString& ExecFile, const wxString& param, wxProcess *cal
return ProcessExecute( wxT( "/usr/bin/open -a " ) + fullFileName, wxEXEC_ASYNC, callback );
}
#else
else
{
wxString msg;
msg.Printf( _( "Command '%s' could not be found." ), fullFileName );
DisplayError( nullptr, msg, 20 );
return -1;
}
#endif
}
@ -179,7 +187,7 @@ bool OpenPDF( const wxString& file )
// Quote in case there are spaces in the path.
// Not needed on 3.1.4, but needed in 3.0 versions
// Moreover, on Linux, on 3.1.4 wx version, adding quotes breaks wxLaunchDefaultApplication
AddDelimiterString( filename );
QuoteString( filename );
#endif
#endif