Am Sonntag, 9. April 2006 15:32 schrieb Bo Peng: > > Not all concerns have been fixed. You still use the current directory as > > search path. This should be only the document directory. > > Where? You mean the default parameter of load(path=".")?
Yes. I saw that because I got a merge conflict. > If I use > something like load(path=""), The code will try to locate > "/file.layout", and of course we do not want to mess with root > directory. > > If this is what you mean, I will see what I can do. You would only need to test for path.empty(), and only try to load the file if the path is not empty. Probably two additional lines of code. > > (have a look at Buffer::getMasterBuffer()) > > This really complicates the search scenario.... I am not sure. I believe that you can always use getMasterBuffer()->filepath(), it should also work for single documents. But even if it is not easy: It is needed ;-( Georg PS: I already use the session features and really like it that LyX starts with the last file open. I would not have thought that before actually using it!