replace hard-coded "/tmp" with package().temp_dir()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13434 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-03-20 15:35:04 +00:00
parent 13c546c460
commit ed952eb226
3 changed files with 2 additions and 3 deletions

View File

@ -333,7 +333,7 @@ void BufferList::emergencyWrite(Buffer * buf)
// 3) In "/tmp" directory. // 3) In "/tmp" directory.
// MakeAbsPath to prepend the current // MakeAbsPath to prepend the current
// drive letter on OS/2 // drive letter on OS/2
s = AddName(MakeAbsPath("/tmp/"), buf->fileName()); s = AddName(package().temp_dir(), buf->fileName());
s += ".emergency"; s += ".emergency";
lyxerr << ' ' << s << endl; lyxerr << ' ' << s << endl;
if (buf->writeFile(s)) { if (buf->writeFile(s)) {

View File

@ -458,7 +458,7 @@ int a(vector<char *> const & arg)
} }
string mainTmp("/tmp"); string mainTmp(package().temp_dir());
int t(vector<char *> const & arg) int t(vector<char *> const & arg)

View File

@ -209,7 +209,6 @@ void LyXRC::setDefaults() {
print_paper_flag = "-t"; print_paper_flag = "-t";
print_paper_dimension_flag = "-T"; print_paper_dimension_flag = "-T";
document_path.erase(); document_path.erase();
tempdir_path = "/tmp";
view_dvi_paper_option.erase(); view_dvi_paper_option.erase();
default_papersize = PAPER_DEFAULT; default_papersize = PAPER_DEFAULT;
custom_export_format = "ps"; custom_export_format = "ps";