Skip to content

Conversation

wiiznokes
Copy link
Contributor

This make sense to have a function that does this here because the match of desktop entries is not trivial (this could even become more complex once we add weights (#22). And this is used in 2 parts on the cosmic DE (app library and launcher)

CC @Drakulix

use self instead, and change the name to match_query, to make it clearer that this function should only be used on user query
And add an helper function try_match_appid instead
Copy link
Member

@Drakulix Drakulix left a comment

Choose a reason for hiding this comment

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

I guess this fine, as long as it only is used purely for search and match_query is never used for finding a desktop entry for an app_id in other components.

@mmstick mmstick merged commit ee9a759 into pop-os:main Aug 20, 2024
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.

3 participants