[Chinese-commits] [fqterm] 43/76: Use /tmp to store tmpfiles

Boyuan Yang hosiet-guest at moszumanska.debian.org
Thu Oct 27 03:17:00 UTC 2016


This is an automated email from the git hooks/post-receive script.

hosiet-guest pushed a commit to branch master
in repository fqterm.

commit ebdbc9e84fe19a0bc82c59f7818952caebd80254
Author: Iru Cai <mytbk920423 at gmail.com>
Date:   Sat Jun 21 09:33:28 2014 +0800

    Use /tmp to store tmpfiles
---
 src/fqterm/fqterm_window.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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() {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/chinese/fqterm.git



More information about the Chinese-commits mailing list