mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
4ed7e2a866
Prior to this fix, running recoll fails with the following error: No/bad main configuration file in /nix/store/.../Resources/examples. The path is incorrect and RECOLL_DATADIR should be used.
14 lines
666 B
Diff
14 lines
666 B
Diff
diff --git a/utils/rclutil.cpp b/utils/rclutil.cpp
|
|
index 60ff5fb..4a59ccc 100644
|
|
--- a/utils/rclutil.cpp
|
|
+++ b/utils/rclutil.cpp
|
|
@@ -279,7 +279,7 @@ const string& path_pkgdatadir()
|
|
"a subfolder of the installation directory. \n"
|
|
"Please set the RECOLL_DATADIR environment variable to point to it\n"
|
|
"(e.g. setx RECOLL_DATADIR \"C:/Program Files (X86)/Recoll/Share)\"\n";
|
|
-#elif defined(__APPLE__) && !defined(MACPORTS) && !defined(HOMEBREW)
|
|
+#elif defined(__APPLE__) && !defined(MACPORTS) && !defined(HOMEBREW) && !defined(NIXPKGS)
|
|
uint32_t size = 0;
|
|
_NSGetExecutablePath(nullptr, &size);
|
|
char *path= (char*)malloc(size+1);
|