Skip to content

Conversation

J0hannes101
Copy link
Contributor

This PR adds a -drun-exclude-categories option to exclude entries from drun based on their category.

@@ -722,6 +723,17 @@ static void read_desktop_file(DRunModePrivateData *pd, const char *root,
}
}

if (pd->exclude_categories) {
categories = g_key_file_get_locale_string_list(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If both show_categories and exclude_categories is used, we have a memory leak here.
We should probably add a check here around it to only get Categories if categories is NULL.

@DaveDavenport
Copy link
Collaborator

Looks good. Can you also update the manpage with this new option?

@J0hannes101
Copy link
Contributor Author

Anything else to do?

@DaveDavenport DaveDavenport merged commit a84f04a into davatorium:next Feb 21, 2025
8 checks passed
@DaveDavenport
Copy link
Collaborator

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants