From 51d34b662e95399ca23caededa9f61f7a7e1dca3 Mon Sep 17 00:00:00 2001 From: Quentin Glidic Date: Fri, 2 Jun 2017 14:54:21 +0200 Subject: helper: Add API to support startup notification Signed-off-by: Quentin Glidic --- source/dialogs/drun.c | 4 ++-- source/dialogs/run.c | 2 +- source/dialogs/ssh.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source/dialogs') diff --git a/source/dialogs/drun.c b/source/dialogs/drun.c index b4834c4f..f9686b99 100644 --- a/source/dialogs/drun.c +++ b/source/dialogs/drun.c @@ -185,7 +185,7 @@ static void exec_cmd_entry ( DRunModeEntry *e ) // Returns false if not found, if key not found, we don't want run in terminal. gboolean terminal = g_key_file_get_boolean ( e->key_file, "Desktop Entry", "Terminal", NULL ); - if ( helper_execute_command ( exec_path, fp, terminal ) ) { + if ( helper_execute_command ( exec_path, fp, terminal, NULL ) ) { char *path = g_build_filename ( cache_dir, DRUN_CACHE_FILE, NULL ); char *key = g_strdup_printf ( "%s:::%s", e->root, e->path ); history_set ( path, key ); @@ -511,7 +511,7 @@ static ModeMode drun_mode_result ( Mode *sw, int mretv, char **input, unsigned i exec_cmd_entry ( &( rmpd->entry_list[selected_line] ) ); } else if ( ( mretv & MENU_CUSTOM_INPUT ) && *input != NULL && *input[0] != '\0' ) { - helper_execute_command ( NULL, *input, run_in_term ); + helper_execute_command ( NULL, *input, run_in_term, NULL ); } else if ( ( mretv & MENU_ENTRY_DELETE ) && selected_line < rmpd->cmd_list_length ) { if ( selected_line < rmpd->history_length ) { diff --git a/source/dialogs/run.c b/source/dialogs/run.c index 9a19d662..0acde0a2 100644 --- a/source/dialogs/run.c +++ b/source/dialogs/run.c @@ -92,7 +92,7 @@ static void exec_cmd ( const char *cmd, int run_in_term ) } char *path = g_build_filename ( cache_dir, RUN_CACHE_FILE, NULL ); - if ( helper_execute_command ( NULL, lf_cmd, run_in_term ) ) { + if ( helper_execute_command ( NULL, lf_cmd, run_in_term, NULL ) ) { /** * This happens in non-critical time (After launching app) * It is allowed to be a bit slower. diff --git a/source/dialogs/ssh.c b/source/dialogs/ssh.c index 66fdc74a..5be70221 100644 --- a/source/dialogs/ssh.c +++ b/source/dialogs/ssh.c @@ -81,7 +81,7 @@ static inline int execshssh ( const char *host ) helper_parse_setup ( config.ssh_command, &args, &argsv, "{host}", host, NULL ); - return helper_execute ( NULL, args, "ssh ", host ); + return helper_execute ( NULL, args, "ssh ", host, NULL ); } /** -- cgit v1.2.3