From: Marvin Dostal Date: Sat, 16 Aug 2025 10:31:45 +0000 (+0200) Subject: desktop-entry: fix partial string matching X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=6dea8c0dcc8c7d23f8455813e081686fe4342464;p=proto%2Flabwc.git desktop-entry: fix partial string matching Use the base instead of the full string for the comparison. --- 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; } }