← Back to team overview

kicad-developers team mailing list archive

Patches.

 

The patch should be allow to search the /kicad/ directory not on the 
/var etc etc but directly in the root of the executables, moreover 
should permit Kicad to search in the bundles (.app directories).

Packages.tar.gz contains some "arts" and settings to make know OSX that 
the applications manage .sch and .pro files.

My 5c

Bye,
Marco
 --------------010506000004040901010301 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0";
name="macos-search-kicad-in-the-bundles-dir.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="macos-search-kicad-in-the-bundles-dir.diff"

Index: gestfich.cpp
===================================================================
--- gestfich.cpp	(revision 372)
+++ gestfich.cpp	(working copy)
@@ -377,6 +377,12 @@
PathFound = TRUE;
}

+#ifdef __WXMAC__
+ if (wxDirExists(wxGetCwd() + wxT("/kicad/help/"))) {
+ FullPath = wxGetCwd() + wxT("/kicad/help/");
+ PathFound = TRUE;
+ }
+#endif

if( PathFound )
{
@@ -450,6 +456,19 @@
return FullFileName;
}

+#ifdef __WXMAC__
+ if (wxFileExists(wxGetCwd() +wxT("/")+ shortname + wxT(".app/Contents/MacOS/") + shortname)) {
+ FullFileName = wxGetCwd() + wxT("/") + shortname + wxT(".app/Contents/MacOS/") + shortname;
+ return FullFileName;
+ }
+
+ if (wxFileExists(wxGetCwd() +wxT("/kicad/bin/")+ shortname )) {
+ FullFileName = wxGetCwd() + wxT("/kicad/bin/") + shortname;
+ return FullFileName;
+ }
+#endif
+
+
return shortname;
}

@@ -566,6 +585,13 @@
}
}

+#ifdef __WXMAC__
+ if (wxDirExists(wxGetCwd() + wxT("/kicad/"))) {
+ data_path = wxGetCwd() + wxT("/kicad/");
+ PathFound = TRUE;
+ }
+#endif
+
/* find kicad from default path list:
* /usr/local/kicad/ or c:/kicad/
* (see s_KicadDataPathList) */
 --------------010506000004040901010301 Content-Type: application/x-gzip;
name="packages.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="packages.tar.gz"

[Attachment content not displayed.] --------------010506000004040901010301-- 




Follow ups