* lyx_main.C (init): Do automatic reconfiguration even when

running in batch mode (bug 2741).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14619 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2006-08-11 22:11:33 +00:00
parent 9c7696c6ee
commit 5c4151bb9b

View File

@ -526,12 +526,12 @@ bool LyX::init()
if (!lyxrc.path_prefix.empty())
prependEnvPath("PATH", lyxrc.path_prefix);
// Check that user LyX directory is ok. We don't do that if
// running in batch mode.
if (lyx_gui::use_gui) {
if (queryUserLyXDir(package().explicit_user_support()))
reconfigureUserLyXDir();
} else {
// Check that user LyX directory is ok.
if (queryUserLyXDir(package().explicit_user_support()))
reconfigureUserLyXDir();
// no need for a splash when there is no GUI
if (!lyx_gui::use_gui) {
first_start = false;
}