X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyX.cpp;h=4e97f7ae64b92286ef5aa0a3152349942c1f2e32;hb=1b6ce0e827d58258e84ba2bf0754c6b273b123db;hp=575bd06daa1886381fa9f2e004faed620e42bcd5;hpb=6b6fa94c913e9cd5f5460328f833f2c6b19541b1;p=lyx.git diff --git a/src/LyX.cpp b/src/LyX.cpp index 575bd06daa..4e97f7ae64 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));