kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #03919
MacOSX: Support for native directories.
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
"emmedics4" <marco.serantoni@...>
-
Date:
Sat, 16 Jan 2010 00:06:36 -0000
-
User-agent:
eGroups-EW/0.82
Under OSX users aren't able to use normal unix paths /usr etc etc and put files there require root account that usually is disabled.
This patch add the possibility to add libraries and modules where user expects them.
Index: common/edaappl.cpp
===================================================================
--- common/edaappl.cpp (revision 2224)
+++ common/edaappl.cpp (working copy)
@@ -499,6 +499,9 @@
* figure out a way to implement this without #ifdef, please do. */
#ifdef __WXMSW__
tmp.AddEnvList( wxT( "PROGRAMFILES" ) );
+#elsif __WXMAC__
+ m_searchPaths.Add( wxT("/Library/Application Support/kicad") );
+ m_searchPaths.Add( wxString(wxGetenv(wxT("HOME"))) + wxT("/Library/Application Support/kicad") );
#else
tmp.AddEnvList( wxT( "PATH" ) );
#endif