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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user