diff --git a/common/common.cpp b/common/common.cpp index c385bd1914..eee130135e 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -469,6 +469,11 @@ wxString KIwxExpandEnvVars(const wxString& str) } } +#ifndef __WINDOWS__ + if( strResult.StartsWith( "~" ) ) + strResult.Replace( "~", wxGetHomeDir(), false ); +#endif // __WINDOWS__ + return strResult; }