aboutsummaryrefslogtreecommitdiff
path: root/src/gui_backend_local.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-03-04 13:21:45 +0100
committerThomas White <taw@physics.org>2021-03-04 13:21:45 +0100
commitbbb08bef7ede9050c23a0309475d170a68631d6e (patch)
treef369e340d6857f8f7f83d899686fb87e6502727c /src/gui_backend_local.c
parent6ebf9236668e365f836da7b4eee75cce74ba25d2 (diff)
GUI: When starting indexing, prefix relative filenames with ../
Diffstat (limited to 'src/gui_backend_local.c')
-rw-r--r--src/gui_backend_local.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui_backend_local.c b/src/gui_backend_local.c
index bc5d3ad0..829909ac 100644
--- a/src/gui_backend_local.c
+++ b/src/gui_backend_local.c
@@ -108,7 +108,11 @@ static int write_file_list(GFile *workdir,
if ( fh == NULL ) return 1;
for ( i=0; i<n_frames; i++ ) {
- fprintf(fh, "%s", filenames[i]);
+ if ( filenames[i][0] != '/' ) {
+ fprintf(fh, "../%s", filenames[i]);
+ } else {
+ fprintf(fh, "%s", filenames[i]);
+ }
if ( events[i] != NULL ) {
fprintf(fh, " %s\n", events[i]);
} else {