From 1d26a29fc076b348be8339cc264d4507ed8f84db Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Fri, 24 Sep 2021 20:32:40 +0200 Subject: [PATCH] Remove tilde expansion Fixes https://gitlab.com/kicad/code/kicad/issues/9213 --- common/common.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index e408beb254..5ea1bcd868 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -260,11 +260,6 @@ wxString KIwxExpandEnvVars( const wxString& str, const PROJECT* aProject ) } } -#ifndef __WINDOWS__ - if( strResult.StartsWith( "~" ) ) - strResult.Replace( "~", wxGetHomeDir(), false ); -#endif // __WINDOWS__ - return strResult; }