Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add app.getApplicationInfoForProtocol API #24112

Merged
merged 19 commits into from Jun 30, 2020

Conversation

georgexu99
Copy link
Contributor

Description of Change

This api returns the name, display icon and path of the application registered as the default handler of a specific protocol (eg. the protocol 'https://example.com' would return 'Chrome', Chrome's icon and its installation path (or whichever your default browser happens to be).

It's an extension of the "getApplicationNameForProtocol" api to allow for more information on the application to be returned

Checklist

Release Notes

Notes: Added app.getApplicationInfoForProtocol() API that returns detailed information about the app that handles a certain protocol

@welcome
Copy link

welcome bot commented Jun 12, 2020

💖 Thanks for opening this pull request! 💖

We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix.

Examples of commit messages with semantic prefixes:

  • fix: don't overwrite prevent_default if default wasn't prevented
  • feat: add app.isPackaged() method
  • docs: app.isDefaultProtocolClient is now available on Linux

Things that will help get your PR across the finish line:

  • Follow the JavaScript, C++, and Python coding style.
  • Run npm run lint locally to catch formatting errors earlier.
  • Document any user-facing changes you've made following the documentation styleguide.
  • Include tests when adding/changing behavior.
  • Include screenshots and animated GIFs whenever possible.

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jun 12, 2020
@MarshallOfSound MarshallOfSound self-requested a review June 12, 2020 21:07
@georgexu99 georgexu99 changed the title feat: add app.getApplicationInfoForProtocol API [WIP] feat: add app.getApplicationInfoForProtocol API Jun 12, 2020
spec-main/api-app-spec.ts Outdated Show resolved Hide resolved
shell/browser/browser.h Outdated Show resolved Hide resolved
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jun 13, 2020
docs/api/app.md Outdated Show resolved Hide resolved
shell/browser/browser_mac.mm Outdated Show resolved Hide resolved
shell/browser/browser_mac.mm Outdated Show resolved Hide resolved
shell/browser/browser_mac.mm Outdated Show resolved Hide resolved
shell/browser/browser_win.cc Outdated Show resolved Hide resolved
shell/browser/browser_win.cc Outdated Show resolved Hide resolved
shell/browser/browser_win.cc Outdated Show resolved Hide resolved
shell/browser/browser_win.cc Outdated Show resolved Hide resolved
shell/browser/browser_win.cc Show resolved Hide resolved
shell/browser/browser_win.cc Show resolved Hide resolved
@georgexu99 georgexu99 changed the title [WIP] feat: add app.getApplicationInfoForProtocol API feat: add app.getApplicationInfoForProtocol API Jun 18, 2020
Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@MarshallOfSound MarshallOfSound changed the title feat: add app.getApplicationInfoForProtocol API [WIP] feat: add app.getApplicationInfoForProtocol API Jun 29, 2020
@jkleinsc
Copy link
Contributor

@electron/wg-api reviewed and approved this at our June 29, 2020 meeting

@georgexu99 georgexu99 changed the title [WIP] feat: add app.getApplicationInfoForProtocol API feat: add app.getApplicationInfoForProtocol API Jun 30, 2020
@MarshallOfSound MarshallOfSound merged commit ee61eb9 into electron:master Jun 30, 2020
@welcome
Copy link

welcome bot commented Jun 30, 2020

Congrats on merging your first pull request! 🎉🎉🎉

@release-clerk
Copy link

release-clerk bot commented Jun 30, 2020

Release Notes Persisted

Added app.getApplicationInfoForProtocol() API that returns detailed information about the app that handles a certain protocol

sentialx pushed a commit to sentialx/electron that referenced this pull request Jul 30, 2020
* pre merge

* windows changes

* added tests

* clean up

* more cleanup

* lint error

* windows 7 support

* added windows 7 implementation

* code review

* lint and code review

* code review

* app.md merge conflict

* merge conflict app.md

accidently deleted code block

* 'lint'

* mis-moved getapplicationinfoforprotocol() into anonymous namespace

* fix test

* lint

* code review
sentialx pushed a commit to sentialx/electron that referenced this pull request Apr 8, 2021
* pre merge

* windows changes

* added tests

* clean up

* more cleanup

* lint error

* windows 7 support

* added windows 7 implementation

* code review

* lint and code review

* code review

* app.md merge conflict

* merge conflict app.md

accidently deleted code block

* 'lint'

* mis-moved getapplicationinfoforprotocol() into anonymous namespace

* fix test

* lint

* code review
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.

None yet

5 participants