KICAD7_TEMPLATE_DIR doesn't support multiple paths
Description
the environment variable KICAD7_TEMPLATE_DIR, when used to find templates, is not split by the path separator (: or ;)
this means that in a system where the outputs of the KiCad Symbols, Footprints and Templates libraries are installed in different paths,
one cannot provide both the fp-lib-table and sym-lib-table (which are searched for correctly in KICAD7_TEMPLATE_DIR)
and the path to the templates
Steps to reproduce
- install the Symbols, Footprints and Templates libraries in separate paths
- not somewhere KiCad knows to look for them, also don't have them installed in such a location already
- delete the cached library tables in
~/.config/kicad/7.99or equivalent for your OS and version - set the symbol and footprint environmental variables to the corresponding libraries
- set the
KICAD7_TEMPLATE_DIRto something like/path/to/symbols/share/kicad/template:/path/to/footprints/share/kicad/template:/path/to/templates/share/kicad/template - open the Project Template Selector (File -> New Project from Template...)
- see no templates
(the Nix package from Nixpkgs exhibits this issue if the system it's running on does not have the symbol/footprint/template libraries where KiCad looks for them)
KiCad Version
7.99 from 2023-05-18
Application: KiCad x86_64 on x86_64
Version: 7.99.0-898d88cc11, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.13.0
HarfBuzz 7.2.0
FontConfig 2.14.0
libcurl/8.0.1 OpenSSL/3.0.8 zlib/1.2.13 brotli/1.0.9 zstd/1.5.5 libidn2/2.3.4 libssh2/1.10.0 nghttp2/1.51.0
Platform: Linux 6.3.2 x86_64, 64 bit, Little endian, wxGTK, , wayland
Build Info:
Date: Jan 1 1980 00:00:00
wxWidgets: 3.2.2 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.79.0
OCC: 7.6.2
Curl: 8.0.1
ngspice: 37
Compiler: GCC 12.2.0 with C++ ABI 1017
Build settings:
KICAD_USE_EGL=ON
Side Note
this seems like a typo
https://gitlab.com/kicad/code/kicad/-/blob/10574839836941ed84e8a5d149435e306fa02d47/common/settings/common_settings.cpp#L43