I do a bit of work offline on my Ubuntu 16.04 laptop. A normal one, Intel Core i5, 8GB, Intel Graphics and 256GB SSD. Whenever I open up the library browser, the KiCad library browser attempts to connect to GitHub - did not debug much into what it is trying to do. Because of this, every time I try to place a symbol, footprint or just browse the libraries, the whole program hangs for a while.
I came up with an ingenious solution. Setup a local git mirror. Basically clone the repo manually and prevent KiCad from accessing the GitHub.
I cloned the GitHub repo. Only to realise tt is not so small. Effectively, my size-challenged SSD now maintaining two copies of the library. It turns out, it never picked up the mirrored copy, it still went to GitHub.
The Failure, Again:
This time, I played it smart. KiCad outsmarted me. Sort of. I did a bit of research and looked up the source code. I found a few places I think I could put replace GitHub URL with mirrored repo URL. KiCad did not pick up my local mirror, it made two copies of the repo. Still picked up the GitHub repo, cloned it and kept trying to connect to it everytime I used the library.
The Failure, This Time Its Personal:
I was not going to give up. I cloned the whole KiCad source and started grep’ing through the code for GitHub URI strings. And replaced them. Felt good. Titanic good. Now, my KiCad cannot find any libraries. I got multiple copies of the library occupying 12GB or so of precious space on my SSD and still KiCad could not find even one copy. I have to manually open each library every time I use the libraries.
Had anyone solved this problem already? Is there an easier way? I could give it another go, but I prefer not to reinvent the wheel.