+2003-07-26 Angus Leeming <leeming@lyx.org>
+
+ * lyx_cb.C:
+ * lyx_main.[Ch]: replace occurances of system_tempdir with
+ os::getTmpDir().
+
2003-07-25 Lars Gullik Bjønnes <larsbj@gullik.net>
* rename Inset to InsetOld
+2003-07-26 Angus Leeming <leeming@lyx.org>
+
+ * insetgraphics.C: remove unused declaration of system_tempdir.
+
2003-07-25 Lars Gullik Bjønnes <larsbj@gullik.net>
* rename Inset to InsetOld
#include <algorithm> // For the std::max
-extern string system_tempdir;
// set by Exporters
using namespace lyx::support;
bufferlist.closeAll();
// do any other cleanup procedures now
- lyxerr[Debug::INFO] << "Deleting tmp dir " << system_tempdir << endl;
+ lyxerr[Debug::INFO] << "Deleting tmp dir " << os::getTmpDir() << endl;
- if (destroyDir(system_tempdir) != 0) {
+ if (destroyDir(os::getTmpDir()) != 0) {
string msg = bformat(_("Could not remove the temporary directory %1$s"),
- system_tempdir);
+ os::getTmpDir());
Alert::warning(_("Could not remove temporary directory"), msg);
}
string system_lyxdir;
string build_lyxdir;
-string system_tempdir;
string user_lyxdir;
DebugStream lyxerr;
lyxrc.print();
os::setTmpDir(CreateLyXTmpDir(lyxrc.tempdir_path));
- system_tempdir = os::getTmpDir();
if (lyxerr.debugging(Debug::INIT)) {
- lyxerr << "LyX tmp dir: `" << system_tempdir << '\'' << endl;
+ lyxerr << "LyX tmp dir: `" << os::getTmpDir() << '\'' << endl;
}
lyxerr[Debug::INIT] << "Reading lastfiles `"
extern string user_lyxdir;
/// e.g. /usr/share/lyx/
extern string system_lyxdir;
-/// e.g. /tmp
-extern string system_tempdir;
/// last files loaded
extern boost::scoped_ptr<LastFiles> lastfiles;
+2003-07-26 Angus Leeming <leeming@lyx.org>
+
+ * os.h: remove irrelevant discussion of system_tempdir.
+
2003-07-21 Angus Leeming <leeming@lyx.org>
* filename.[Ch]: new files implementing class FileName.
string binpath();
// returns name of LyX binary
string binname();
-// system_tempdir actually doesn't belong here
-// I put it here only to avoid a global variable.
+//
void setTmpDir(string const & p);
//
string getTmpDir();