kicad/kicad-user-library.patch

19 lines
1.0 KiB
Diff
Raw Normal View History

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
@@ -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 )