From 6dea8c0dcc8c7d23f8455813e081686fe4342464 Mon Sep 17 00:00:00 2001 From: Marvin Dostal Date: Sat, 16 Aug 2025 12:31:45 +0200 Subject: [PATCH] desktop-entry: fix partial string matching Use the base instead of the full string for the comparison. --- src/desktop-entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/desktop-entry.c b/src/desktop-entry.c index 6fc842a8..b21df3bc 100644 --- a/src/desktop-entry.c +++ b/src/desktop-entry.c @@ -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; } } -- 2.52.0