From 746e2ea283efc6c92981a867398df4935026b6e0 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sat, 4 Oct 2014 19:29:16 +0000 Subject: [PATCH] Optional trace file located in temp directory The existing trace file location created when the CMake option WSJT_QDEBUG_TO_FILE is ON is not usable with a Linux package installed in /usr. Moved location to the temporary directory as _trace.log git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.4@4474 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index dcbb12260..db5d29676 100644 --- a/main.cpp +++ b/main.cpp @@ -109,7 +109,7 @@ int main(int argc, char *argv[]) #if WSJT_QDEBUG_TO_FILE // // open a trace file - TraceFile trace_file {QDir {QApplication::applicationDirPath ()}.absoluteFilePath ("wsjtx_trace.log")}; + TraceFile trace_file {QDir {QStandardPaths::writableLocation (QStandardPaths::TempLocation)}.absoluteFilePath (a.applicationName () + "_trace.log")}; // announce to trace file qDebug () << program_title (revision ()) + " - Program startup";