Jürgen Spitzmüller wrote:
I believe one cause of the problems we have with settings that get lost after reconfigure is the following: The settings are saved by Qt in a config file that is named from the LyX version. Thus we get a new, empty config file after every version change, and thus the toolbar changes etc. are lost.

Currently I have

juer...@whisper:~/lyx> ls ~/.config/LyX
LyX-1.6.0svn.conf  LyX-1.6.2.conf     LyX-1.6.3.conf  LyX-1.6.4svn.conf
LyX-1.6.1svn.conf  LyX-1.6.2svn.conf  LyX-1.6.3svn.conf     LyX-2.0.0svn.conf

I think it would make more sense to use the PACKAGE variable, i.e. lyx[-version-suffix], as a config file name. Then session parameters would persist over minor and even major version changes, and one still would have separated configuration files for trunk and branch, if --with-version-suffix is used (this is in line with the /.lyx vs. /.lyx-<version-suffix> directory policy.

The attached patch does this change.

Abdel, is there any reason not to do this?

I can't see any :-)

Abdel

Reply via email to