[EMAIL PROTECTED] (Jürgen Spitzmüller) writes: > Bo Peng wrote: >> OK. Here is an updated patch that does 2 as well. When lyx is started >> without proper .lst files, a message box will appear and say "No >> textclass is found. Click OK to reconfigure". After a user clicks OK, >> reconfigure will start. > > This looks good. > Regarding Uwe's request, what about re-running configure > -without-latex-config > if configuration failed again, and then inform the user in a message box: > > "Some texclasses are missing. LyX couldn't be configured properly. A fallback > configuration is used." > > or something. > > Jean-Marc, what is your opinion about this?
I think that configure.py should have some exception handling or something like that: 1/ generate all files in some temp file 2/ if we finished successfully, overwrite existing files with the new ones. This way, a failed configuration will be a no-op: no file overwritten, no weird empty files. This will mean that LyX does not need to be modified to handle a special case related to a particular bug of configure.py. What LyX should do (if it does not already) if to show a message if configure.py returns an error condition. And of course, miktex should be fixed :) JMarc