mirror of
https://github.com/lbonn/rofi
synced 2024-11-10 14:24:27 +00:00
parent
37c20740e4
commit
253724c85c
1 changed files with 6 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue