Angus Leeming <[EMAIL PROTECTED]> writes: > > Nice work. But is the extra code in lyx_main.C needed at all? > > This block of code in lyx_main.C: > > void LyX::init(bool gui) > { > ... > readRcFile("lyxrc.defaults"); > system_lyxrc = lyxrc; > system_formats = formats; > system_converters = converters; > system_movers = movers; > system_lcolor = lcolor; > > string prefsfile = "preferences"; > // back compatibility to lyxs < 1.1.6 > if (LibFileSearch(string(), prefsfile).empty()) > prefsfile = "lyxrc"; > if (!LibFileSearch(string(), prefsfile).empty()) > readRcFile(prefsfile); > > ... > } > > means that lyxrc should already contain the system default value unless the > user subsequently overwrites it.
You are right. It didn't work at first but probably due to something else. > Moreover, on a reconfigure, the system default shouldn't overwrite the user > preference. Ie, reconfigure should do nothing to path_prefix. Unless the user didn't specify an own path_prefix. The way it is now (without changing lyx_main.C) the preferences file will not contain a path_prefix entry and on restart LyX would use the system default. If the user runs configure and then save preferences, LyX might save the old path_prefix as personal preference but I didn't test that. Do you like to commit the configure.m4 part if Bennett says it works for him and noone else protests? Ciao /Andreas