Ignore empty path.

Not in spec. but lets ignore it.

Fix: #539
This commit is contained in:
Dave Davenport 2017-01-17 20:00:00 +01:00
parent 37c20740e4
commit 253724c85c

View file

@ -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 );