Small adjustments for native Mac bundle.

Works fine, but porting all the helpers to work from the bundle would be a
lot of work. All must be changed to find their resources inside the .app
Proof of concept done with antiword. Does not make sense to ship without
at least poppler (and maybe unrtf, mutagen, exiftool).
This commit is contained in:
Jean-Francois Dockes
2021-02-03 09:52:18 +01:00
parent 2d90b80bb5
commit c534afede0
3 changed files with 10 additions and 3 deletions
+1
View File
@@ -285,6 +285,7 @@ const string& path_pkgdatadir()
char *path= (char*)malloc(size+1);
_NSGetExecutablePath(path, &size);
datadir = path_cat(path_getfather(path_getfather(path)), "Resources");
free(path);
#else
// If not in environment, use the compiled-in constant.
datadir = RECOLL_DATADIR;