Add ~ processing in env vars.

Fixes https://gitlab.com/kicad/code/kicad/issues/1829

(cherry picked from commit 3a9746c657)
This commit is contained in:
Jeff Young 2020-05-13 23:45:04 +01:00
parent fde7ae4d19
commit c6042100f9
1 changed files with 5 additions and 0 deletions

View File

@ -469,6 +469,11 @@ wxString KIwxExpandEnvVars(const wxString& str)
} }
} }
#ifndef __WINDOWS__
if( strResult.StartsWith( "~" ) )
strResult.Replace( "~", wxGetHomeDir(), false );
#endif // __WINDOWS__
return strResult; return strResult;
} }