diff options
author | Iru Cai <mytbk920423@gmail.com> | 2014-06-21 09:33:28 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2014-06-21 09:33:28 +0800 |
commit | ebdbc9e84fe19a0bc82c59f7818952caebd80254 (patch) | |
tree | 895975c16f823039fea387910d0550b069ce7f73 /src | |
parent | 84fafc966c02450d5532ab17951b9c42cb59f738 (diff) | |
download | fqterm-ebdbc9e84fe19a0bc82c59f7818952caebd80254.tar.xz |
Use /tmp to store tmpfiles
Diffstat (limited to 'src')
-rw-r--r-- | src/fqterm/fqterm_window.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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() { |