On Thu, Jun 16, 2016 at 11:04:10AM -0700, Pavel Sanda wrote: > Guillaume Munch wrote: > > Le 16/06/2016 01:30, Scott Kostyshak a écrit : > >> Currently if you start a new document and save, the default directory in > >> the save dialog is the home directory. This is true even if I start lyx > >> from a different directory. I would prefer for the default directory to > >> be the current working directory. > >> > > > > +1 > > +1
The default directory can actually be configured. In Preferences on the Paths tab, you can set the "Working directory" and this is the directory first proposed to save files. However, if you enter '.' it is converted immediately (save and reopen preferences to see what I mean). If you enter it directly in the preferences file, everything works as expected. The attached patch makes it so you can enter it in the GUI. Basically what it does is say "do not convert a relative path to an absolute path before storing the path in preferences". That seems reasonable to me. Looking at the other paths in that dialog, I can imagine use cases where one would prefer a relative path also for the backup directory and temporary directory. I guess the main question is: do you think a user would enter a relative path in that dialog intending for it to be immediately converted to an absolute path? The more I think about it, I cannot think of such a case for any of the fields (although I agree that for some of the fields a relative path would not makes much sense, like the templates path). Scott
diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 8b7c3b3..b50cfd0 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -634,7 +634,6 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format) case RC_DOCUMENTPATH: if (lexrc.next()) { document_path = os::internal_path(lexrc.getString()); - document_path = expandPath(document_path); } break;
signature.asc
Description: PGP signature