diff options
author | Thomas White <taw@physics.org> | 2020-09-08 11:22:52 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-09-08 16:16:48 +0200 |
commit | 1501d5ff2d0eb6d485beed579d5e1051682d5cc5 (patch) | |
tree | 1665f0593380553d9a94fe9ac7c5a1f7fd0aef60 /src/gui_backend_local.c | |
parent | e15687963dd10cbb3a0cca0c4bfd08133b6d4814 (diff) |
Local/SLURM BE: Add full path to stream in results
Diffstat (limited to 'src/gui_backend_local.c')
-rw-r--r-- | src/gui_backend_local.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui_backend_local.c b/src/gui_backend_local.c index 1bddc1be..6d385d82 100644 --- a/src/gui_backend_local.c +++ b/src/gui_backend_local.c @@ -200,7 +200,6 @@ static void *run_indexing(const char *job_title, fclose(fh); g_free(notes_path); g_object_unref(notes_file); - g_object_unref(workdir_file); job = malloc(sizeof(struct local_job)); if ( job == NULL ) return NULL; @@ -241,6 +240,7 @@ static void *run_indexing(const char *job_title, if ( r == FALSE ) { ERROR("Failed to run indexamajig: %s\n", error->message); + g_object_unref(workdir_file); free(job); return NULL; } @@ -258,9 +258,14 @@ static void *run_indexing(const char *job_title, streams = malloc(sizeof(char *)); if ( streams != NULL ) { - streams[0] = strdup("crystfel.stream"); + GFile *stream_gfile = g_file_get_child(workdir_file, + "crystfel.stream"); + streams[0] = g_file_get_path(stream_gfile); + g_object_unref(stream_gfile); add_result(proj, strdup(job_title), streams, 1); } + + g_object_unref(workdir_file); return job; } |