mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
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:
parent
13c546c460
commit
ed952eb226
@ -333,7 +333,7 @@ void BufferList::emergencyWrite(Buffer * buf)
|
||||
// 3) In "/tmp" directory.
|
||||
// MakeAbsPath to prepend the current
|
||||
// drive letter on OS/2
|
||||
s = AddName(MakeAbsPath("/tmp/"), buf->fileName());
|
||||
s = AddName(package().temp_dir(), buf->fileName());
|
||||
s += ".emergency";
|
||||
lyxerr << ' ' << s << endl;
|
||||
if (buf->writeFile(s)) {
|
||||
|
@ -458,7 +458,7 @@ int a(vector<char *> const & arg)
|
||||
}
|
||||
|
||||
|
||||
string mainTmp("/tmp");
|
||||
string mainTmp(package().temp_dir());
|
||||
|
||||
|
||||
int t(vector<char *> const & arg)
|
||||
|
@ -209,7 +209,6 @@ void LyXRC::setDefaults() {
|
||||
print_paper_flag = "-t";
|
||||
print_paper_dimension_flag = "-T";
|
||||
document_path.erase();
|
||||
tempdir_path = "/tmp";
|
||||
view_dvi_paper_option.erase();
|
||||
default_papersize = PAPER_DEFAULT;
|
||||
custom_export_format = "ps";
|
||||
|
Loading…
Reference in New Issue
Block a user