Skip to content

Fix incorrect process application matching - #586

Merged
stsdc merged 2 commits into
elementary:mainfrom
City-busz:patch-1
Nov 29, 2026
Merged

stsdc merged 2 commits into
elementary:mainfrom
City-busz:patch-1

Conversation

@City-busz

Copy link
Copy Markdown
Contributor

Skip desktop entries with empty command lines when populating the application info list to prevent incorrect process application matching.

Skip desktop entries with empty command lines when populating
the application info list to prevent incorrect process
application matching.
@stsdc

stsdc commented Nov 28, 2026

Copy link
Copy Markdown
Member

Hi, Could you provide examples before/after?
Or maybe what is the app that is being mismatched?
Thanks!

@City-busz

Copy link
Copy Markdown
Contributor Author

Desktop entries with an empty Exec= field can cause incorrect process-to-application matching.

When populating the application info list, entries with an empty command line are added to the list with an empty string as their key. Since many processes have an empty command line (or the matching logic ends up comparing against an empty string), these entries can incorrectly match unrelated processes.

For example, an application with an empty Exec= field may be displayed as the application associated with several unrelated running processes, even though it has nothing to do with them.

Skipping desktop entries with empty command lines prevents these false matches.

@stsdc

stsdc commented Nov 29, 2026

Copy link
Copy Markdown
Member

Out of curiosity, what apps do have empty Exec fields in desktop files?

I recall, I had this issue before, but not in recent years.

@City-busz

Copy link
Copy Markdown
Contributor Author

Out of curiosity, what apps do have empty Exec fields in desktop files?

Actually, in my case, the issue was caused by a bug in KWin, where a variable in its desktop file wasn't being substituted correctly, resulting in an empty Exec= field.

@stsdc
stsdc merged commit b3027ea into elementary:main Nov 29, 2026
4 of 14 checks passed
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.

2 participants