kicad/kicad-user-library.patch
Stefan Brüns e7c74e24f0 Accepting request 685170 from home:StefanBruens:branches:electronics
- Update to minor release 5.1.0
  This version contains critical bugfixes and minor improvements.
  See http://kicad-pcb.org/blog/2019/03/KiCad-5.1.0-Release/ for details.
- Remove obsolete kicad-library-repos-install.patch
- Remove upstream 0001-Use-absolute-path-CMAKE_INSTALL_FULL_LIBDIR-for-3d-v.patch

OBS-URL: https://build.opensuse.org/request/show/685170
OBS-URL: https://build.opensuse.org/package/show/electronics/kicad?expand=0&rev=59
2019-03-15 15:05:24 +00:00

19 lines
1.0 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
@@ -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 )