]> 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)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 17 Sep 2016 20:38:27 +0000 (22:38 +0200)
commitade098e2896bd9d7d87b3df1a9276661dd3f7c78
tree9c173ec4cbb3f15ec0d7fae31b9e2ed7bd1e27ea
parent82c474dad21df933c44b72b08b84cdf066f4054e
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.
src/BufferParams.cpp