diff options
author | Thomas White <taw@physics.org> | 2022-07-06 13:41:08 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2022-07-06 13:41:08 +0200 |
commit | 5b087416a02a53c61d0827ee4bad50370320a0fb (patch) | |
tree | a52bea18f36b2d2ff6056c57952d289ada56f089 /src/crystfel_gui.c | |
parent | d8e55abe45fa3efe1a886a34c46523f3c1f3ef23 (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/crystfel_gui.c')
-rw-r--r-- | src/crystfel_gui.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c index 252e63ab..066422a3 100644 --- a/src/crystfel_gui.c +++ b/src/crystfel_gui.c @@ -1372,31 +1372,6 @@ char *get_crystfel_path_str() } -char *get_crystfel_exe(const char *program) -{ - GFile *crystfel_path; - char *exe_path; - GFile *exe; - - crystfel_path = get_crystfel_path_gfile(); - if ( crystfel_path == NULL ) return NULL; - - exe = g_file_get_child(crystfel_path, program); - if ( exe == NULL ) { - ERROR("Couldn't determine executable path. " - "This is OK provided the executable " - "path is set correctly.\n"); - exe_path = strdup(program); - } else { - exe_path = g_file_get_path(exe); - g_object_unref(exe); - } - g_object_unref(crystfel_path); - - return exe_path; -} - - struct gui_job_notes_page *add_job_notes_page(GtkWidget *notebook) { GtkWidget *box; |