export RECOLL_CONFDIR to filters

This commit is contained in:
Jean-Francois Dockes
2013-06-06 13:39:48 +02:00
parent 6a5cc1b7fe
commit 77cba9d0b3
4 changed files with 11 additions and 4 deletions
+1
View File
@@ -100,6 +100,7 @@ bool MimeHandlerExec::next_document()
ExecCmd mexec;
MEAdv adv(filtermaxseconds);
mexec.setAdvise(&adv);
mexec.putenv("RECOLL_CONFDIR", m_config->getConfDir());
mexec.putenv(m_forPreview ? "RECOLL_FILTER_FORPREVIEW=yes" :
"RECOLL_FILTER_FORPREVIEW=no");
+2 -4
View File
@@ -18,6 +18,7 @@
#include <iostream>
#include <sstream>
using namespace std;
#include "cstr.h"
#include "mh_execm.h"
@@ -33,10 +34,6 @@
#include <sys/types.h>
#include <sys/wait.h>
#ifndef NO_NAMESPACES
using namespace std;
#endif /* NO_NAMESPACES */
bool MimeHandlerExecMultiple::startCmd()
{
LOGDEB(("MimeHandlerExecMultiple::startCmd\n"));
@@ -56,6 +53,7 @@ bool MimeHandlerExecMultiple::startCmd()
oss << "RECOLL_FILTER_MAXMEMBERKB=" << m_maxmemberkb;
m_cmd.putenv(oss.str());
m_cmd.putenv("RECOLL_CONFDIR", m_config->getConfDir());
m_cmd.putenv(m_forPreview ? "RECOLL_FILTER_FORPREVIEW=yes" :
"RECOLL_FILTER_FORPREVIEW=no");