On Mon, Aug 22, 2011 at 3:39 PM, Patrick Ohly <[email protected]> wrote:
> On Mo, 2011-08-22 at 15:32 +0200, Murray Cumming wrote:
>> On Thu, 2011-08-18 at 16:03 +0200, Patrick Ohly wrote:
>> > +static string SyncEvolutionDataDir()
>> > +{
>> > +    string dataDir(DATA_DIR);
>> > +    const char *envvar = getenv("SYNCEVOLUTION_DATA_DIR");
>> > +    if (envvar) {
>> > +        dataDir = envvar;
>> > +    }
>> > +    return dataDir;
>> > +}
>> >
>> > This new env variable needs to be documented in README.rst. A better
>> > place for this
>> > function might be in util.h/cpp.
>>
>> Is there even any need for an environment variable to override the
>> default location? Just for testing?
>
> Primarily for testing. A secondary, less important use case is that some
> users might not have root access on a machine and thus might be forced
> to run pre-compiled binaries in a non-standard location. That works when
> setting the env variables right. The HTTP server HOWTO explained that.
> I'm running SyncEvolution like that for my own use on estamos.de
>
> That reminds me: syncevo-http-server sets all these env variables when
> asked to. SYNCEVOLUTION_DATA_DIR must be added there.
>

Done.

Cheers,
Chris
_______________________________________________
SyncEvolution mailing list
[email protected]
http://lists.syncevolution.org/listinfo/syncevolution

Reply via email to