Bo Peng wrote:
Working like OOo does not mean it is a good way for latex because we
routinely work with external files. If you do not want users to mess
around the filename.lyxdir directory, I would suggest that you always
put this directory under the temporary directory. If you do allow
users to update files under filename.lyxdir, clear directory
structure, good naming etc will matter.
Many users already maintain their own directory underneath the document
directory. They can of course continue to do so.
One of the problems I have with your approach is that once a user work
in bundled mode, user-interaction changes a lot in that there is no
easy way to work with external files. And then, switching between
bundled and non-bundled mode is non-reversible.
The "internal" files can always be updated from the "external" files.
You mentioned that the non-reversible problem can be solved by a
session approach, but you have not said how you would like to use it.
Will you copy your files to their original, potentially out of tree,
locations? If true, you are facing the same security problems you
mentioned. This will also lead to different behaviors when a user work
on different machines, with or without a session file.
As I said elsewhere, I don't attempt reversibility in that sense,
because of the security problems.
rh