desktop-entry: fix partial string matching

Use the base instead of the full string for the comparison.
This commit is contained in:
Marvin Dostal 2025-08-16 12:31:45 +02:00 committed by Johan Malm
parent 3ee12b1e95
commit 6dea8c0dcc

View file

@ -268,7 +268,7 @@ get_db_entry_by_id_fuzzy(struct sfdo_desktop_db *db, const char *app_id)
int alen = strlen(app_id);
int dlen = strlen(desktop_id_base);
if (!strncasecmp(app_id, desktop_id, alen > dlen ? dlen : alen)) {
if (!strncasecmp(app_id, desktop_id_base, alen > dlen ? dlen : alen)) {
return entry;
}
}