+2002-08-29 Dekel Tsur <dekelts@tau.ac.il>
+
+ * buffer.C (readFile): Look for lyx2lyx in LYXDIR/lyx2lyx/
+
2002-09-03 Angus Leeming <leeming@lyx.org>
* BufferView_pimpl.h: qualified name is not allowed in member
"Use LyX 0.10.x to read this!"));
return false;
} else {
- string const command = "lyx2lyx "
+ string command =
+ LibFileSearch("lyx2lyx", "lyx2lyx");
+ if (command.empty()) {
+ Alert::alert(_("ERROR!"),
+ _("Can't find conversion script."));
+ return false;
+ }
+ command += " -t"
+ +tostr(LYX_FORMAT)+" "
+ QuoteName(filename_);
cmd_ret const ret = RunCommand(command);
if (ret.first) {