From a5096bf28a653abdaab867f7a47e35e31fd105f3 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 1 Dec 2022 16:54:02 -0500 Subject: [PATCH] CLI: Fix macOS binary dir Fixes https://gitlab.com/kicad/code/kicad/-/issues/12799 --- common/pgm_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/pgm_base.cpp b/common/pgm_base.cpp index ddceb969b3..572f7d397b 100644 --- a/common/pgm_base.cpp +++ b/common/pgm_base.cpp @@ -535,7 +535,7 @@ bool PGM_BASE::setExecutablePath() wxFileName fn( m_bin_dir ); - if( fn.GetName() == wxT( "kicad" ) ) + if( fn.GetName() == wxT( "kicad" ) || fn.GetName() == wxT( "kicad-cli" ) ) { // kicad launcher, so just remove the Contents/MacOS part fn.RemoveLastDir();