9cab8cb0fb
OBS-URL: https://build.opensuse.org/request/show/333420 OBS-URL: https://build.opensuse.org/package/show/electronics/kicad?expand=0&rev=6
19 lines
859 B
Diff
19 lines
859 B
Diff
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
|