From ebdbc9e84fe19a0bc82c59f7818952caebd80254 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Sat, 21 Jun 2014 09:33:28 +0800 Subject: Use /tmp to store tmpfiles --- src/fqterm/fqterm_window.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/fqterm/fqterm_window.cpp b/src/fqterm/fqterm_window.cpp index bb2c867..59d5a48 100644 --- a/src/fqterm/fqterm_window.cpp +++ b/src/fqterm/fqterm_window.cpp @@ -2499,7 +2499,11 @@ void FQTermExternalEditor::start() { QString FQTermExternalEditor::getTempFilename() { - return getPath(USER_CONFIG) + "tmp_do_not_use.txt"; + #ifndef WIN32 + return "/tmp/.fqterm_tmp.txt"; + #else + return getPath(USER_CONFIG) + "tmp_do_not_use.txt"; + #endif } void FQTermExternalEditor::clearTempFileContent() { -- cgit v1.2.3