Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to exclude categories from drun #2102 #2104

Merged
merged 3 commits into from
Feb 21, 2025

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.

@J0hannes101 J0hannes101 deleted the dev branch February 21, 2025 15:29
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