Skip to content

Fix application matching for absolute executable paths - #587

Open
City-busz wants to merge 2 commits into
elementary:mainfrom
City-busz:patch-2
Open

City-busz wants to merge 2 commits into
elementary:mainfrom
City-busz:patch-2

Conversation

@City-busz

Copy link
Copy Markdown
Contributor

Compare executable basenames when matching processes to desktop applications.

This fixes application identification when the process command contains an absolute executable path but the desktop entry specifies only the executable name.

City-busz and others added 2 commits November 9, 2026 15:28
Compare executable basenames when matching processes to
desktop applications.

This fixes application identification when the process command
contains an absolute executable path but the desktop entry
specifies only the executable name.
@stsdc

stsdc commented Nov 29, 2026

Copy link
Copy Markdown
Member

Hi, could you provide an app example, so I could verify this?

Since we do not have tests for this I have to check manually.

Thanks!

@City-busz

Copy link
Copy Markdown
Contributor Author

I have encountered this with some D-Bus-activated applications. For example, you can reproduce it with:

$ gapplication launch ca.desrt.dconf-editor
$ gapplication launch org.gnome.SystemMonitor
$ gapplication launch org.gnome.Snapshot
$ gapplication launch org.gnome.Console

For example, dconf-editor has Exec=dconf-editor in its desktop file, while the process command line is /usr/bin/dconf-editor --gapplication-service if it's activated via D-Bus.

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