]> git.lyx.org Git - features.git/commit
Improve systemlyxdir handling
authorEnrico Forestieri <forenr@lyx.org>
Sat, 17 Sep 2016 20:38:27 +0000 (22:38 +0200)
committerRichard Heck <rgheck@lyx.org>
Sun, 25 Sep 2016 16:09:24 +0000 (12:09 -0400)
commitae0679926e46295272228c90ef81c7bcd4b4b879
treecd966ae9b3c0c033917f75a09e98e536fa0b91e0
parent432d1398bce901234bfe7f9753d94b1f39a61847
Improve systemlyxdir handling

Do not assume that the /systemlyxdir path prefix in \origin refers
to the system directory of the running instance, but check through
some heuristics what the real system dir is. In this way, a document
in the system dir of any other LyX installation is correctly spotted
and the \origin tag properly updated. For example, one can use an
installed version of lyx to edit a document in the lib/doc dir of a
git repo and obtain the same result as when running lyx in place.

(cherry picked from commit ade098e2896bd9d7d87b3df1a9276661dd3f7c78)
src/BufferParams.cpp
status.22x