From 1501d5ff2d0eb6d485beed579d5e1051682d5cc5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 8 Sep 2020 11:22:52 +0200 Subject: Local/SLURM BE: Add full path to stream in results --- src/gui_backend_local.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/gui_backend_local.c') 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; } -- cgit v1.2.3