summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Glidic <sardemff7+git@sardemff7.net>2017-06-02 14:57:19 +0200
committerQuentin Glidic <sardemff7+git@sardemff7.net>2017-06-02 14:57:19 +0200
commit3f8af0d7c5c200914252d51146e387226f5d240d (patch)
treecf7b3b05ca23367e43530dc4bb497b3f2106c567
parent0644f99b64ff150699bedd1a8263be66059530d7 (diff)
run: Add startup notification support
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
-rw-r--r--source/dialogs/run.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/dialogs/run.c b/source/dialogs/run.c
index 0acde0a2..8b20c290 100644
--- a/source/dialogs/run.c
+++ b/source/dialogs/run.c
@@ -92,7 +92,9 @@ 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, NULL ) ) {
+ RofiHelperExecuteContext context = { .name = NULL };
+ // FIXME: assume startup notification support for terminals
+ if ( helper_execute_command ( NULL, lf_cmd, run_in_term, run_in_term ? &context : NULL ) ) {
/**
* This happens in non-critical time (After launching app)
* It is allowed to be a bit slower.