Skip to content

Fix stock templates path for flatpak

Commit ad251b7b broke the template path lookup for flatpak via PATHS::GetStockTemplatesPath(). Fix this by using ::GetStockEDALibraryPath() in all EDA Library related path lookup functions.

GetStockEDALibraryPath() effectively does the same as GetStockDataPath(), but it takes care to check the KICAD_LIBRARY_DATA build config, which is being used by flatpak to point to the flatpak EDA Library extensions in /app/extensions/Library/.

Closes #11174 (closed)

Merge request reports