Fix Mac and Linux stock plugins paths
This commit is contained in:
parent
75c525af4f
commit
e4ef531f7d
|
@ -167,15 +167,14 @@ wxString PATHS::GetStockPluginsPath()
|
|||
wxFileName fn;
|
||||
|
||||
#if defined( __WXMAC__ )
|
||||
fn.Assign( Pgm().GetExecutablePath() );
|
||||
fn.AppendDir( wxT( "Contents" ) );
|
||||
fn.AppendDir( wxT( "PlugIns" ) );
|
||||
fn.Assign( PATHS::GetOSXKicadDataDir() );
|
||||
fn.AppendDir( wxT( "plugins" ) );
|
||||
#elif defined( __WXMSW__ )
|
||||
fn.Assign( Pgm().GetExecutablePath() + wxT( "/plugins/" ) );
|
||||
#else
|
||||
// PLUGINDIR = CMAKE_INSTALL_FULL_LIBDIR path is the absolute path
|
||||
// corresponding to the install path used for constructing KICAD_USER_PLUGIN
|
||||
wxString tfname = wxString::FromUTF8Unchecked( KICAD_PLUGINDIR );
|
||||
wxString tfname = wxString::FromUTF8Unchecked( KICAD_DATA );
|
||||
fn.Assign( tfname, "" );
|
||||
fn.AppendDir( "kicad" ); // linux use lowercase
|
||||
fn.AppendDir( wxT( "plugins" ) );
|
||||
|
@ -286,4 +285,4 @@ wxString PATHS::GetOSXKicadDataDir()
|
|||
|
||||
return ddir.GetPath();
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue