]> git.mdlowis.com Git - proto/labwc.git/commit
desktop-entry: better handle desktop files with dots in their name
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 9 Dec 2025 08:11:25 +0000 (09:11 +0100)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Wed, 10 Dec 2025 16:36:38 +0000 (01:36 +0900)
commit333ae306b12c1e4857e1206ffd69420899586638
tree1572039cd8c961d739983fc5736e8dc20bf52e1c
parent8fdf375af3148aa8edc17b5104780c309da4a1b0
desktop-entry: better handle desktop files with dots in their name

This fixes - among others - cases like `R.E.P.O..desktop`.

Due to the duplicated dot at the end we were matching against
a 0 sized string which was always true and thus would always
match the desktop file, regardless of what the app-id was.

A related issue is that an app-id of `osomething` would match
a desktop file name called `R.E.P.O.desktop` due to the string
being size of 1.

Fix this by requiring the partial desktop filename string to
be at least 3 characters wide.

Fixes #3257
src/desktop-entry.c