From 81c84fcac515c0a936ff1da6989f8ca1bda780b5 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 10 Feb 2014 10:58:17 +0100 Subject: [PATCH] fix linux compil. --- common/edaappl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/edaappl.cpp b/common/edaappl.cpp index 289abc3b2c..eb5b54bdd3 100644 --- a/common/edaappl.cpp +++ b/common/edaappl.cpp @@ -1251,7 +1251,7 @@ bool EDA_APP::Set3DShapesPath( const wxString& aKiSys3Dmod ) #elif defined(__UNIX__) // Linux and non-Apple Unix // Try the home directory: path.Empty(); - wxGetEnv( wxT("${HOME}", &path ) + wxGetEnv( wxT("HOME"), &path ); path += wxT("/kicad/share/") + relpath; if( wxFileName::DirExists( path ) ) @@ -1262,6 +1262,7 @@ bool EDA_APP::Set3DShapesPath( const wxString& aKiSys3Dmod ) // Try the standard install path: path = wxT("/usr/local/kicad/share/") + relpath; + if( wxFileName::DirExists( path ) ) { wxSetEnv( aKiSys3Dmod, path ); @@ -1270,6 +1271,7 @@ bool EDA_APP::Set3DShapesPath( const wxString& aKiSys3Dmod ) // Try the official distrib standard install path: path = wxT("/usr/share/kicad/") + relpath; + if( wxFileName::DirExists( path ) ) { wxSetEnv( aKiSys3Dmod, path );