using namespace std;
using support::bformat;
+using support::FileName;
using support::libFileSearch;
+using support::makeAbsPath;
using support::makeDisplayPath;
using support::onlyFilename;
using support::onlyPath;
return b->readFile(a);
case 1:
// Here we delete the autosave
- unlink(a);
+ unlink(FileName(makeAbsPath(a)));
break;
default:
return false;
string tname;
// use defaults.lyx as a default template if it exists.
if (templatename.empty())
- tname = libFileSearch("templates", "defaults.lyx");
+ tname = libFileSearch("templates", "defaults.lyx").absFilename();
else
tname = templatename;