mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Revert "Remove test for files when using batch mode."
We are not really ready for this case.
This reverts commit e143f0b9e9
.
This commit is contained in:
parent
e143f0b9e9
commit
efc9720b0d
@ -493,8 +493,12 @@ int LyX::init(int & argc, char * argv[])
|
||||
for (int argi = 1; argi < argc; ++argi)
|
||||
pimpl_->files_to_load_.push_back(os::utf8_argv(argi));
|
||||
|
||||
// doesn't make sense to load the splash file in batch mode
|
||||
if (use_gui && first_start) {
|
||||
if (!use_gui && pimpl_->files_to_load_.empty()) {
|
||||
lyxerr << to_utf8(_("Missing filename for this operation.")) << endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if (first_start) {
|
||||
pimpl_->files_to_load_.push_back(
|
||||
i18nLibFileSearch("examples", "splash.lyx").absFileName());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user