If KICAD_SYMBOL_DIR does not exist it is set to baseSharePath + "/library". baseSharePath comes from DEFAULT_INSTALL_PATH. DEFAULT_INSTALL_PATH is set to a path used on the original build server during the build.
Obviously, it doesn't make sense to refer to paths used on a build server when installed on a users machine. A more sensible default would be an empty string.
Meanwhile FindKicadFile() has an entirely different way of finding KiCad data which uses hardcoded paths the user might be using (which is buggy).
If KICAD_SYMBOL_DIR does not exist it is set to baseSharePath + "/library". baseSharePath comes from DEFAULT_ INSTALL_ PATH. DEFAULT_ INSTALL_ PATH is set to a path used on the original build server during the build.
Obviously, it doesn't make sense to refer to paths used on a build server when installed on a users machine. A more sensible default would be an empty string.
Meanwhile FindKicadFile() has an entirely different way of finding KiCad data which uses hardcoded paths the user might be using (which is buggy).