summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2015-11-23 09:47:29 +0100
committerDave Davenport <qball@gmpclient.org>2015-11-23 09:47:29 +0100
commitb974b10c96691af11bbe93b209edbae0f7aab954 (patch)
tree5370d7b4874365923f5b89de67dcc72deafb0921 /source
parent611c2c4302f6fbe590bef639a4cfd2ed50cbeba7 (diff)
[DRun] Skip entries that have NoDisplay set.
Closes issue #283
Diffstat (limited to 'source')
-rw-r--r--source/dialogs/drun.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/dialogs/drun.c b/source/dialogs/drun.c
index 6819e0fb..a48d27b3 100644
--- a/source/dialogs/drun.c
+++ b/source/dialogs/drun.c
@@ -154,6 +154,13 @@ static void get_apps_dir ( DRunModePrivateData *pd, const char *bp )
continue;
}
}
+ // Skip entries that have NoDisplay set.
+ if ( g_key_file_has_key ( kf, "Desktop Entry", "NoDisplay", NULL ) ) {
+ if ( g_key_file_get_boolean ( kf, "Desktop Entry", "NoDisplay", NULL ) ) {
+ g_key_file_free ( kf );
+ continue;
+ }
+ }
if ( g_key_file_has_key ( kf, "Desktop Entry", "Exec", NULL ) ) {
size_t nl = ( ( pd->cmd_list_length ) + 2 );
pd->entry_list = g_realloc ( pd->entry_list, nl * sizeof ( *( pd->entry_list ) ) );