macports: ensure the GUI finds recollindex
This commit is contained in:
parent
a88549452d
commit
9c111fba29
@ -273,6 +273,18 @@ RclConfig *recollinit(int flags,
|
|||||||
if (cleanup)
|
if (cleanup)
|
||||||
atexit(cleanup);
|
atexit(cleanup);
|
||||||
|
|
||||||
|
#ifdef MACPORTS
|
||||||
|
// Apple keeps changing the way to set the environment (PATH) for
|
||||||
|
// a desktop app (started by launchd or whatever). Life is too
|
||||||
|
// short.
|
||||||
|
const char *cp = getenv("PATH");
|
||||||
|
if (!cp) //??
|
||||||
|
cp = "";
|
||||||
|
string PATH(cp);
|
||||||
|
PATH = string("/opt/local/bin/") + ":" + PATH;
|
||||||
|
setenv("PATH", PATH.c_str(), 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Make sure the locale is set. This is only for converting file names
|
// Make sure the locale is set. This is only for converting file names
|
||||||
// to utf8 for indexing.
|
// to utf8 for indexing.
|
||||||
setlocale(LC_CTYPE, "");
|
setlocale(LC_CTYPE, "");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user