From 0422d2e70f80845856871ee9501ffeb311f57f30 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Wed, 15 Nov 2023 09:25:38 -0500 Subject: [PATCH] macOS: flatten symlinks from paths in GetExecutablePath Fixes https://gitlab.com/kicad/code/kicad/-/issues/14430 --- common/paths.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/paths.cpp b/common/paths.cpp index 4b9bccef45..8be3349cf4 100644 --- a/common/paths.cpp +++ b/common/paths.cpp @@ -27,6 +27,7 @@ #include #include #include +#include // lowercase or pretty case depending on platform #if defined( __WXMAC__ ) || defined( __WXMSW__ ) @@ -532,6 +533,7 @@ const wxString& PATHS::GetExecutablePath() // bundle directory, e.g., /Applications/kicad.app/ wxFileName fn( bin_dir ); + WX_FILENAME::ResolvePossibleSymlinks( fn ); if( fn.GetName() == wxT( "kicad" ) || fn.GetName() == wxT( "kicad-cli" ) ) {