On 23/11/2016 01:11, Enrico Forestieri wrote:
1. versioning of the preferences file...what else is needed?
Have a look at c2a18fc1 to get an idea.
ok, thanks, do we need also anything else on the prefs2prefs side? If not, do
we actually need to bump up the prefs file version? What if a newer prefs file
is open with an older LyX ?
2. persistent storage of the auth_files strings set; my first pick would be a
simple text file in the user's .lyx/ folder with one file-name per line.
We already have .lyx/session. See src/Session.cpp.
Cool, all the infrastructure was already there, just pushed a change along this
line, so now we have a new SessionSection :-)!
(LastFiles and AuthFiles have quite many similarities, but AuthFiles is even
easier -- for now they don't share code)
One note: one way to avoid the [auth session] section growing unbounded, might
be to have an expiry timestamp, so that e.g., authorizations would expire in
~1y or so. This might be done with a section syntax like:
<timestamp> <filename>
instead of the simple <filename> we have now.
Any further comment welcome, thanks!
T.