aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-07-22 15:02:53 +0200
committerThomas White <taw@physics.org>2021-07-22 15:02:53 +0200
commita8e71ba4c7e1b5b9cdb556155b3ebd8dd4daa861 (patch)
tree9a12e20e7ddb7811821e9aaf56f3715d63aafc1c
parente482fff9431500e6650493b483e4f6637861cbc9 (diff)
GUI: Really use temporary folder for single-shot indexing
Somehow, I missed out the actual "chdir" call!
-rw-r--r--src/gui_index.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui_index.c b/src/gui_index.c
index a9037003..7aaefbf6 100644
--- a/src/gui_index.c
+++ b/src/gui_index.c
@@ -514,6 +514,12 @@ static char *enter_gui_tempdir()
}
+ if ( chdir(tmpdir) ) {
+ ERROR("Failed to chdir to temporary fodler: %s\n",
+ strerror(errno));
+ /* Still return as usual */
+ }
+
return tmpdir;
}