From 5b087416a02a53c61d0827ee4bad50370320a0fb Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 6 Jul 2022 13:41:08 +0200 Subject: GUI: Invoke programs without path Including the path wasn't working very well. One of the problems is that it prevents the use of a wrapper script for the programs, which is needed for certain environments. This commit just removes the path prefixes altogether. --- src/gui_index.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/gui_index.c') diff --git a/src/gui_index.c b/src/gui_index.c index 99d8feb3..2634f525 100644 --- a/src/gui_index.c +++ b/src/gui_index.c @@ -81,7 +81,7 @@ void cell_explorer_sig(GtkWidget *widget, struct crystfelproject *proj) streams = malloc((res->n_streams+2)*sizeof(gchar *)); if ( streams == NULL ) return; - streams[0] = get_crystfel_exe("cell_explorer"); + streams[0] = "cell_explorer"; for ( i=0; in_streams; i++ ) { streams[i+1] = res->streams[i]; } @@ -845,21 +845,14 @@ static char **indexamajig_command_line(const char *geom_filename, { char **args; char tols[2048]; - char *indexamajig_path; int i; int n_args = 0; args = malloc(64*sizeof(char *)); if ( args == NULL ) return NULL; - indexamajig_path = get_crystfel_exe("indexamajig"); - if ( indexamajig_path == NULL ) { - free(args); - return NULL; - } - /* The basics */ - add_arg(args, n_args++, indexamajig_path); + add_arg(args, n_args++, "indexamajig"); add_arg(args, n_args++, "-i"); add_arg(args, n_args++, files_list); if ( geom_filename != NULL ) { -- cgit v1.2.3