diff options
Diffstat (limited to 'source/dialogs/drun.c')
-rw-r--r-- | source/dialogs/drun.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/dialogs/drun.c b/source/dialogs/drun.c index 941a0b33..907d5f2e 100644 --- a/source/dialogs/drun.c +++ b/source/dialogs/drun.c @@ -284,8 +284,13 @@ static gboolean read_desktop_file ( DRunModePrivateData *pd, const char *root, c #endif pd->entry_list[pd->cmd_list_length].exec = g_key_file_get_string ( kf, "Desktop Entry", "Exec", NULL ); - pd->entry_list[pd->cmd_list_length].icon_name = g_key_file_get_locale_string ( kf, "Desktop Entry", "Icon", NULL, NULL ); - pd->entry_list[pd->cmd_list_length].icon = NULL; + if ( config.show_icons ) { + pd->entry_list[pd->cmd_list_length].icon_name = g_key_file_get_locale_string ( kf, "Desktop Entry", "Icon", NULL, NULL ); + } + else{ + pd->entry_list[pd->cmd_list_length].icon_name = NULL; + } + pd->entry_list[pd->cmd_list_length].icon = NULL; // Keep keyfile around. pd->entry_list[pd->cmd_list_length].key_file = kf; |