Repository navigation
perf: use GIO instead of xdg-mime for app.getApplicationNameForProtocol() - #51251
Merged
ckerr merged 1 commit intoApr 23, 2026
Merged
Conversation
deepak1556
approved these changes
Apr 22, 2026
…ol() 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.
ckerr
force-pushed
the
perf/faster-app.getApplicationNameForProtocol-on-linux
branch
from
April 23, 2026 14:30
f73141a to
171fe1a
Compare
4 tasks done
ckerr
deleted the
perf/faster-app.getApplicationNameForProtocol-on-linux
branch
April 23, 2026 20:09
|
Release Notes Persisted
|
Contributor
|
I was unable to backport this PR to "42-x-y" cleanly; |
3 tasks done
Contributor
dsanders11
pushed a commit
that referenced
this pull request
May 15, 2026
…tocol()` (#51628) perf: use GIO instead of `xdg-mime` for `app.getApplicationNameForProtocol()` (#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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Speed up
app.getApplicationNameForProtocol()on Linux by using GIO library calls g_app_info_get_default_for_uri_scheme() and g_app_info_get_display_name()) instead of spawning a shell to callxdg-mime.This cleans up the tests a little too, since we don't have to mock xdg-mime anymore for CI.
Related: #51099, #51197
Checklist
npm testpassesRelease Notes
Notes: Improved performance of
app.getApplicationNameForProtocol()on Linux.