Skip to content

perf: use GIO instead of xdg-mime for app.getApplicationNameForProtocol() - #51628

Merged
dsanders11 merged 1 commit into
42-x-yfrom
perf/faster-app.getApplicationNameForProtocol-on-linux--42-x-y
May 15, 2026
Merged

dsanders11 merged 1 commit into
42-x-yfrom
perf/faster-app.getApplicationNameForProtocol-on-linux--42-x-y

Conversation

@ckerr

@ckerr ckerr commented May 14, 2026

Copy link
Copy Markdown
Member

Manually backport #51251 to 42-x-y. See that PR for details.

Notes: Improved performance of app.getApplicationNameForProtocol() on Linux.

…tocol()` (#51251)

perf: use GIO instead of xdg-mime for app.getApplicationNameForProtocol()

The Linux impl of app.getApplicationNameForProtocol() now uses
`g_app_info_get_default_for_uri_scheme()` + `g_app_info_get_display_name()`
instead of spawning a call to the `xdg-mime` shell command.

Clean up the related tests: remove the xdg-mime mock.
@trop trop Bot added the semver/none label May 14, 2026
@ckerr
ckerr marked this pull request as draft May 14, 2026 22:01
@ckerr
ckerr marked this pull request as ready for review May 15, 2026 02:12
@ckerr ckerr changed the title perf: use GIO instead of xdg-mime for `app.getApplicationNameForPro… perf: use GIO instead of xdg-mime for app.getApplicationNameForProrocol() May 15, 2026
@ckerr ckerr changed the title perf: use GIO instead of xdg-mime for app.getApplicationNameForProrocol() perf: use GIO instead of xdg-mime for app.getApplicationNameForProtocol() May 15, 2026
@dsanders11
dsanders11 merged commit 2c8e90d into 42-x-y May 15, 2026
87 checks passed
@release-clerk

release-clerk Bot commented May 15, 2026

Copy link
Copy Markdown

Release Notes Persisted

Improved performance of app.getApplicationNameForProtocol() on Linux.

@dsanders11
dsanders11 deleted the perf/faster-app.getApplicationNameForProtocol-on-linux--42-x-y branch May 15, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants