X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyX.cpp;h=1c8af06158a668d06b23cdb3167a900e905d425c;hb=1e519d1115f41f71c253cb9e2fbb7803e9a583a9;hp=575bd06daa1886381fa9f2e004faed620e42bcd5;hpb=6b6fa94c913e9cd5f5460328f833f2c6b19541b1;p=lyx.git diff --git a/src/LyX.cpp b/src/LyX.cpp index 575bd06daa..1c8af06158 100644 --- a/src/LyX.cpp +++ b/src/LyX.cpp @@ -483,17 +483,12 @@ int LyX::init(int & argc, char * argv[]) } // Initialization of LyX (reads lyxrc and more) - try { - LYXERR(Debug::INIT, "Initializing LyX::init..."); - bool success = init(); - LYXERR(Debug::INIT, "Initializing LyX::init...done"); - if (!success) - return EXIT_FAILURE; - } catch (exception const &e) { - // This can happen _in_theory_ in replaceEnvironmentPath - lyxerr << "Caught exception `" << e.what() << "'." << endl; + LYXERR(Debug::INIT, "Initializing LyX::init..."); + bool success = init(); + LYXERR(Debug::INIT, "Initializing LyX::init...done"); + if (!success) return EXIT_FAILURE; - } + // Remaining arguments are assumed to be files to load. for (int argi = 1; argi < argc; ++argi) pimpl_->files_to_load_.push_back(os::utf8_argv(argi)); @@ -505,7 +500,7 @@ int LyX::init(int & argc, char * argv[]) if (first_start) { pimpl_->files_to_load_.push_back( - i18nLibFileSearch("examples", "splash.lyx").absFileName()); + i18nLibFileSearch("examples", "Welcome.lyx").absFileName()); } return EXIT_SUCCESS;