Index: kicad-4.0.0-rc1/common/kiface_i.cpp =================================================================== --- kicad-4.0.0-rc1.orig/common/kiface_i.cpp +++ kicad-4.0.0-rc1/common/kiface_i.cpp @@ -80,6 +80,13 @@ static void setSearchPaths( SEARCH_STACK aDst->AddPaths( fn.GetPath() ); } +// 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" ) ); + #ifndef __WXMAC__ aDst->AddPaths( wxT( "/usr/local/share" ) ); #endif