aboutsummaryrefslogtreecommitdiff
path: root/src/gui_index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2022-07-06 13:41:08 +0200
committerThomas White <taw@physics.org>2022-07-06 13:41:08 +0200
commit5b087416a02a53c61d0827ee4bad50370320a0fb (patch)
treea52bea18f36b2d2ff6056c57952d289ada56f089 /src/gui_index.c
parentd8e55abe45fa3efe1a886a34c46523f3c1f3ef23 (diff)
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.
Diffstat (limited to 'src/gui_index.c')
-rw-r--r--src/gui_index.c11
1 files changed, 2 insertions, 9 deletions
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; i<res->n_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 ) {