Stanislav Brabec
4688dbb168
Update to new release version 5.0.0 Removed incorporated patches: kicad-4.0.7-remove-internal-CheckCXXSymbolExists.patch, kicad-boost-1_61-boost-context-changes.patch and kicad-set-cxx-version.patch. OBS-URL: https://build.opensuse.org/request/show/625282 OBS-URL: https://build.opensuse.org/package/show/electronics/kicad?expand=0&rev=41
27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
Index: common/kiface_i.cpp
|
|
===================================================================
|
|
--- common/kiface_i.cpp.orig 2018-07-13 21:53:52.000000000 +0200
|
|
+++ common/kiface_i.cpp 2018-07-20 16:03:55.529317649 +0200
|
|
@@ -54,6 +54,7 @@ static void setSearchPaths( SEARCH_STACK
|
|
|
|
fn.AppendDir( wxT( "library" ) );
|
|
aDst->AddPaths( fn.GetPath() );
|
|
+
|
|
|
|
fn.AppendDir( wxT( "doc" ) );
|
|
aDst->AddPaths( fn.GetPath() );
|
|
@@ -61,6 +62,13 @@ static void setSearchPaths( SEARCH_STACK
|
|
fn.RemoveLastDir();
|
|
fn.RemoveLastDir(); // "../../" up twice, removing library/doc/
|
|
}
|
|
+ // user local library
|
|
+ wxString homeDir = wxFileName::GetHomeDir();
|
|
+ aDst->AddPaths( homeDir + wxT( "/.local/share/kicad/library-repos/kicad-library/library" ) );
|
|
+ aDst->AddPaths( homeDir + wxT( "/.local/share/kicad/library-repos/kicad-library/modules" ) );
|
|
+ aDst->AddPaths( homeDir + wxT( "/.local/share/kicad/library-repos/kicad-library/modules/packages3d" ) );
|
|
+ aDst->AddPaths( homeDir + wxT( "/.local/share/kicad/library-repos/kicad-library/template" ) );
|
|
+
|
|
|
|
// Add PCB library file path to search path list.
|
|
if( aId == KIWAY::FACE_PCB || aId == KIWAY::FACE_CVPCB )
|