From 5163cb697658b0597d0c114a602a7d35877055f7 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 29 Jan 2023 20:50:05 -0500 Subject: [PATCH] Don't use SystemDirsAppend on windows for finding the docs TODO, yeet SystemDirsAppend entirely on Windows into the sun Fixes https://gitlab.com/kicad/code/kicad/-/issues/11589 --- common/searchhelpfilefullpath.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/searchhelpfilefullpath.cpp b/common/searchhelpfilefullpath.cpp index a9fff1fc55..feea036120 100644 --- a/common/searchhelpfilefullpath.cpp +++ b/common/searchhelpfilefullpath.cpp @@ -37,8 +37,10 @@ wxString SearchHelpFileFullPath( const wxString& aBaseName ) // help files are most likely located in the documentation install path basePaths.Add( PATHS::GetDocumentationPath() ); +#ifndef __WIN32__ // just in case, add all known system directories to the search stack SystemDirsAppend( &basePaths ); +#endif #if defined( DEBUG ) basePaths.Show( wxString( __func__ ) + wxS( ": basePaths" ) );