]> git.lyx.org Git - lyx.git/commitdiff
replace hard-coded "/tmp" with package().temp_dir()
authorAbdelrazak Younes <younes@lyx.org>
Mon, 20 Mar 2006 15:35:04 +0000 (15:35 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 20 Mar 2006 15:35:04 +0000 (15:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13434 a592a061-630c-0410-9148-cb99ea01b6c8

src/bufferlist.C
src/client/client.C
src/lyxrc.C

index 2ae3df66871419a7450d8f7a8e690c61e7c547fc..7e32ed739eaa97969139cd9b7c0edd4676b14f0e 100644 (file)
@@ -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)) {
index 4cc3ab70ac509d7fff3c298c628b3bee7fb2fb03..6134877b169d2e3a961aa86e10738084d18a49ca 100644 (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)
index a70fd8ae0150300de5302965599ca538f818fa98..36bc4fc70fec61832c396ca8004973bfcab73a36 100644 (file)
@@ -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";