3d stock plugins (dll plugins): fix incorrect path on Linux.
Fixes #7750 https://gitlab.com/kicad/code/kicad/issues/7750
This commit is contained in:
parent
959ae73a01
commit
35e6e55bc9
|
@ -172,7 +172,7 @@ wxString PATHS::GetStockPluginsPath()
|
||||||
#elif defined( __WXMSW__ )
|
#elif defined( __WXMSW__ )
|
||||||
fn.Assign( Pgm().GetExecutablePath() + wxT( "/plugins/" ) );
|
fn.Assign( Pgm().GetExecutablePath() + wxT( "/plugins/" ) );
|
||||||
#else
|
#else
|
||||||
// PLUGINDIR = CMAKE_INSTALL_FULL_LIBDIR path is the absolute path
|
// KICAD_DATA is the absolute path
|
||||||
// corresponding to the install path used for constructing KICAD_USER_PLUGIN
|
// corresponding to the install path used for constructing KICAD_USER_PLUGIN
|
||||||
wxString tfname = wxString::FromUTF8Unchecked( KICAD_DATA );
|
wxString tfname = wxString::FromUTF8Unchecked( KICAD_DATA );
|
||||||
fn.Assign( tfname, "" );
|
fn.Assign( tfname, "" );
|
||||||
|
@ -187,7 +187,17 @@ wxString PATHS::GetStockPlugins3DPath()
|
||||||
{
|
{
|
||||||
wxFileName fn;
|
wxFileName fn;
|
||||||
|
|
||||||
|
#ifdef __UNIX__
|
||||||
|
// KICAD_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 );
|
||||||
|
fn.Assign( tfname, "" );
|
||||||
|
fn.AppendDir( wxT( "kicad" ) );
|
||||||
|
fn.AppendDir( wxT( "plugins" ) );
|
||||||
|
#else
|
||||||
fn.Assign( PATHS::GetStockPluginsPath() );
|
fn.Assign( PATHS::GetStockPluginsPath() );
|
||||||
|
#endif
|
||||||
|
|
||||||
fn.AppendDir( "3d" );
|
fn.AppendDir( "3d" );
|
||||||
|
|
||||||
return fn.GetPathWithSep();
|
return fn.GetPathWithSep();
|
||||||
|
|
Loading…
Reference in New Issue