diff options
Diffstat (limited to 'source/dialogs/drun.c')
-rw-r--r-- | source/dialogs/drun.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/dialogs/drun.c b/source/dialogs/drun.c index 5aa4dac7..1df1b88f 100644 --- a/source/dialogs/drun.c +++ b/source/dialogs/drun.c @@ -194,6 +194,12 @@ static void exec_cmd_entry ( DRunModeEntry *e ) } gchar *fp = rofi_expand_path ( g_strstrip ( str ) ); gchar *exec_path = g_key_file_get_string ( e->key_file, "Desktop Entry", "Path", NULL ); + if ( exec_path != NULL && strlen(exec_path) == 0){ + // If it is empty, ignore this property. (#529) + g_free(exec_path); + exec_path = NULL; + } + if ( execsh ( exec_path, fp, e->terminal ) ) { char *path = g_build_filename ( cache_dir, DRUN_CACHE_FILE, NULL ); char *key = g_strdup_printf ( "%s:::%s", e->root, e->path ); |