Commit Graph

80 Commits

Author SHA1 Message Date
Alex Shvartzkop 363aa2befb Use native separators in stock paths. 2026-02-23 02:41:49 +03:00
Seth Hillbrand 2190b50ed3 Fix AppImage binary path resolution
When running inside an AppImage, the bundled ld-linux wrapper causes
/proc/self/exe to resolve to the dynamic linker rather than the actual
binary. Both kiway.cpp and paths.cpp now check the APPDIR environment
variable and construct the correct executable path, falling back to the
standard path resolution when not in an AppImage.
2026-02-03 13:26:55 -08:00
Seth Hillbrand 5e81b19ff0 Ensure 3d model plugins respect the flags
KICAD_RUN_FROM_BUILD_DIR should prevent ABI-incompatible plugins from
being loaded

(cherry picked from commit 0d2f50e38d)
2026-01-23 12:08:03 -08:00
Dominique Fuchs 69c2203432 macOS: Fix kicad-cli resolving paths relative to symlink location 2026-01-22 17:10:28 -08:00
dsa-t c71c6cb724 Warn about Controlled folder access on Windows
Controlled folder access blocks access to Documents folder which we use.


(cherry picked from commit aa6fb159b5)

Co-authored-by: Alex Shvartzkop <dudesuchamazing@gmail.com>
2025-11-29 19:38:17 +03:00
Seth Hillbrand 321b5793a2 Add some QA tests
Created basic tests for:
- Notification Manager
- Clipboard
- File history
- Filename Resolver
- Hotkey store
- Collector
- Reporters
2025-08-04 11:36:43 -07:00
Alex Shvartzkop 50ce7d93fb Fix some warnings. 2025-06-30 06:52:16 +03:00
Marek Roszko fe54a2ec0f Append python Scripts directory to PATH env on windows 2025-06-05 23:12:32 -04:00
Seth Hillbrand b401505259 Fix previous commit 2025-03-07 08:42:35 -08:00
Seth Hillbrand 1157b5b0b3 Add missing arch directory to appimage plugin 2025-03-07 08:42:12 -08:00
Seth Hillbrand ff6eb9c091 Apparently, despite documentation, this was missing
Only APPDIR is set.  We also set some APPRUN_* variables that we could
use if this ends up being too similar to other elements
2025-03-05 15:35:31 -08:00
Seth Hillbrand 2afa67f946 Allow AppImages to pick out different location
Don't assume that libraries are located in the CMAKE lib install
directory as AppImage will relocate them based on the mount point
2025-03-03 12:34:31 -08:00
Wayne Stambaugh f161d94521 Common folder housekeeping part 2. 2025-01-14 15:25:05 -05:00
Marek Roszko db56d51838 Fix output paths for jobs again 2025-01-11 19:05:45 -05:00
John Beard ce140faf2d CI: let KICAD_RUN_FROM_BUILD_DIR work from archived CI build environments 2025-01-08 21:58:55 +08:00
John Beard d0d4c4065b Make run from build dir work for debug executables
When using KICAD_RUN_FROM_BUILD_DIR, at least on Linux, not all
executables can assume executable/.. is the build directory - instead
iterate upwards until a CMakeCache.txt file in encountered.

Without this, for example, the PNS log viewer complains about missing
JSON schema files.
2025-01-08 20:23:31 +08:00
Marek Roszko fdfeda7b72 Ensure mkdir with bom export job
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19520
2025-01-08 00:07:26 -05:00
Seth Hillbrand 0b2d4d4879 Revise Copyright statement to align with TLF
Recommendation is to avoid using the year nomenclature as this
information is already encoded in the git repo.  Avoids needing to
repeatly update.

Also updates AUTHORS.txt from current repo with contributor names
2025-01-01 14:12:04 -08:00
Mike Williams 2c99bc6c6d new feature: Schematic Design Blocks
Added to advanced config, default to off.
EnableDesignBlocks=1 in kicad_advanced to test

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/2263
2024-09-05 08:35:49 -04:00
Alex Shvartzkop cf7ad330e9 Fix some platform ifdef checks. 2024-06-01 06:49:11 +03:00
Jon Evans a3b6ab48a4 Add a new plugin system for the new API 2024-04-02 19:51:16 -04:00
Jon Evans f613cd1cb4 ADDED: A new IPC API based on protobuf and nng
Details, documentation, and language bindings are works in
progress and will be evolving over the course of KiCad 9
development.
2024-04-02 19:34:36 -04:00
Mojca Miklavec 01cb1543bb Change the platform detection order
Make sure that windows-specific getWindowsKiCadRoot() is only called on Windows
2024-03-11 15:43:33 +00:00
Jon Evans 9b54537e38 Add environment variable for configuring stock data home
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15687
2024-03-05 23:18:06 -05:00
Jon Evans 4622738c93 Deconflict instance-checker dir with 7.0 2024-02-07 18:35:10 -05:00
Jon Evans 874be359e0 Use a more specific path for instance checker 2024-02-06 21:33:44 -05:00
Marek Roszko fc62d36441 Add share/locale to catalog paths on windows 2024-01-15 22:08:17 -05:00
Marek Roszko 5bc78f7d9f Remove the user 3d path creation 2024-01-13 19:35:55 -05:00
Seth Hillbrand 9ccf9ce0b4 Forgot to commit the last file 2023-12-21 09:54:34 -08:00
Jon Evans 0422d2e70f macOS: flatten symlinks from paths in GetExecutablePath
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14430
2023-11-15 09:25:49 -05:00
Jeff Young 04214983cf Repair standalone application 3D plugin path resolution.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15322
2023-09-25 18:03:27 +01:00
Marek Roszko e3285c234a Move executable path to PATHS to avoid a circular dependency 2023-09-23 20:21:37 -04:00
Marek Roszko 121ea99824 Move the settings path to PATHS to allow shifting other classes into kicommon 2023-09-23 20:06:58 -04:00
Marek Roszko 208d146a03 Force fontconfig to look at the correct path for fonts.conf on windows 2023-08-26 13:53:43 -04:00
3GO 206f66aee2 Make user cache path adjustable by env var. 2023-06-22 13:35:48 +00:00
Marek Roszko 087550ebd3 Get 3d plugins working for running from build dir 2022-09-08 21:49:10 -04:00
Marek Roszko 7473528cf4 Ensure user paths are created early
Fix #11962
2022-07-05 20:47:53 -04:00
Johannes Maibaum edc7261099 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
2022-03-25 08:15:59 +01:00
Marek Roszko 6420bd777f Sprinkle some wxT 2022-02-21 18:49:36 -05:00
Marek Roszko 0b46c75197 Simplify locale data path setting... 2022-02-21 13:08:29 -05:00
Marek Roszko ad251b7b8c Simplify KICAD6_TEMPLATE_DIR default
The search_stack method is bugland

Fix https://gitlab.com/kicad/code/kicad/-/issues/10119
2022-02-21 12:22:23 -05:00
Seth Hillbrand 098e8f7d9b Revert "cmake: adding KICAD_MACOSX_APP_BUNDLE option"
This reverts commit ea9f960cc1.

Reverted for updates as this currently breaks kicad-mac-builder
2022-01-31 15:57:56 -08:00
Davide Gerhard ea9f960cc1 cmake: adding KICAD_MACOSX_APP_BUNDLE option
ADDED: with cmake KICAD_MACOSX_APP_BUNDLE option the user can disable
the macOS app bundle creation when compiling on macOS. This permit to
use/install KiCad like any other *nix platform (/usr/bin, /usr/share,
ecc.). By default, cmake build the app bundle.
2022-01-28 15:49:37 -08:00
Franck Bourdonnec d877f04198 fixe paths 2021-12-02 20:23:00 +00:00
Jon Evans 31f41610f6 Move macOS data path inside the app bundle 2021-11-15 18:56:35 -05:00
qu1ck 4be115ca55 Add KICAD6_3RD_PARTY env variable 2021-08-27 21:11:47 +00:00
Jon Evans 37fd7c785e Make macOS path determination tolerant of bundle renaming
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8922
2021-08-13 17:00:45 -04:00
Marek Roszko 8921eef0be Add a "Open Demos Project" shortcut to the kicad launcher
Small UX improvement for the new user....
2021-07-25 21:58:57 -04:00
Marek Roszko c72914c43c Use Normalize instead of MakeAbsolute
Ugh doing this while headhurts much
2021-06-21 18:07:23 -04:00
Marek Roszko 5184908dd1 Fix accidental oversight for linux run from build dir paths 2021-06-21 18:05:38 -04:00