>>> If you want all files on the encrypted volume, then set the path for the
>>> temporary directory to somewhere on that volume.
>> I don't want this behaviour *always*. If I edit some other lyx-file,
>> not this secret one, then the TrueCrypt volume may even not be
>> mounted.
>>
>> Is there in LyX some parameter like the 'lyx-file location', so that
>> the temporary folder could be specified with this parameter?
>>
> Not so far as I know. This is a pretty unusual situation, and LyX is
> definitely not set up to use different temporary directories for
> different files in the same session.

I was not speaking of multiple temporary directories within one
section. But I think I see your point. My approach is from LaTeX — all
temp files are in the same directory as the main tex-file.

> You might try setting up a second
> user directory, and launching Lyx with:
>    lyx -userdir /home/you/.lyxcrypt/
> when you need to do so.
>

I've tried what you suggest:
lyx -userdir /media/truecrypt1/tmp,
where  /media/truecrypt1/ is where the truecrypt volume is mounted. On
start up, LyX correctly ask me if a new directory /tmp needs to be
created, put there lots of files but the PDF file during the preview
is still built here: /tmp/lyx_tmpdir.M22932/ (the number always
changes).

So basically, the temp folder is not put into a userdir. Can I control
the location of the temp folder during startup?

Reply via email to