summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2019-08-09 20:08:41 +0200
committerDave Davenport <qball@gmpclient.org>2019-08-09 20:08:41 +0200
commit204008d389817c2fc52d8534edce640444329d3a (patch)
treee1cad9b7b6002931e4145e511b312534f95623b6
parenta42e9f869f8fe95772aace1544dcf907827a0e52 (diff)
[DRun] Do not run custom command in drun mode.
Fixes: #966
-rw-r--r--source/dialogs/drun.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/dialogs/drun.c b/source/dialogs/drun.c
index c8b7ab8c..2bde5035 100644
--- a/source/dialogs/drun.c
+++ b/source/dialogs/drun.c
@@ -735,8 +735,6 @@ static ModeMode drun_mode_result ( Mode *sw, int mretv, char **input, unsigned i
DRunModePrivateData *rmpd = (DRunModePrivateData *) mode_get_private_data ( sw );
ModeMode retv = MODE_EXIT;
- gboolean run_in_term = ( ( mretv & MENU_CUSTOM_ACTION ) == MENU_CUSTOM_ACTION );
-
if ( mretv & MENU_NEXT ) {
retv = NEXT_DIALOG;
}
@@ -750,9 +748,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' ) {
- RofiHelperExecuteContext context = { .name = NULL };
- // FIXME: We assume startup notification in terminals, not in others
- helper_execute_command ( NULL, *input, run_in_term, run_in_term ? &context : NULL );
+ retv = RELOAD_DIALOG;
}
else if ( ( mretv & MENU_ENTRY_DELETE ) && selected_line < rmpd->cmd_list_length ) {
// Possitive sort index means it is in history.