[LyX/master] Handle the case of outdated chkconfig.ltx in user directory

Jürgen Spitzmüller jspitzm at gmail.com
Sun Apr 21 10:32:38 UTC 2024


Am Sonntag, dem 21.04.2024 um 12:20 +0200 schrieb Pavel Sanda:
> Actually I'm not sure I understand the lifecycle of chkconfig.ltx.
> After renaming to chkconfig.ltx.bak some fresh chkconfig.ltx will be
> created there or only chkconfig.ltx.bak remains?

The latter. Let me explain:

The problem is that, at some point in a previous release of LyX and for
reasons unknown to me, chkconfig.ltx ended up being copied to the user
directory (it is normally in the system directory).

So if you upgrade on a given installation, this version of
chkconfig.ltx stayed there (or was copied over with Win and Mac) and
was used instead of the global one.

This was always an (unnoticed) problem until 2.4, where the current
chkconfig.ltx produced another packages.lst format, which was checked
by a version number. This lead to an endless loop.


Normally, no chkconfig.ltx file is in the user directory. But it might
be the case that some users deliberately put a modified copy in there.
This is we we do not simply remove this file, but rename it and warn
the users. So users who had modifications can try to update the file
(or copy the modifications to the new version or whatever).

-- 
Jürgen


More information about the lyx-devel mailing list