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

'Hurl The Link' Browser Extension not working in Edge (native messaging host not found) #185

Open
matiasnino opened this issue Dec 13, 2024 · 1 comment
Labels
bug Something isn't working Fixed/Completed Commits related to this are in master, if the issue is still open, it's yet to be released

Comments

@matiasnino
Copy link

Thank you for making this awesome utility!

I am trying to get the extension to work in Edge because the latest official Facebook Messenger Desktop app is built within an edge wrapper which forces all links sent in Messenger to automatically open in Edge. Having a right click to Hurl the link would force a browser choice when opening a link.

Unfortunately I can't get the extension to run in edge.
I followed the instructions to install the extension as follows:

  • successfully loaded the unpacked extension into Edge developer mode.
  • Got the extension ID
  • updated install-nmd.ps1 script to add the NMH registry key pointer to the Edge location: HKEY_CURRENT_USER\Software\Microsoft\Edge\NativeMessagingHosts\
  • ran the install-nmd.ps1 script as administrator with the extension id as parameter 0 and the absolute launcher.exe path as parameter 1 (C:\Program Files\Hurl)
  • Successfully ran the install script
    TESTING:
  • Edge displays the "Hurl the Link" right click drop down but throws the following console error whenever I click to "Hurl the Link"
  • "Uncaught (in promise) Error: Specified native messaging host not found."
  • I did some research and many articles report issues with the path formatting. I experimented with all the following but none of them worked:
    -Registry path values tried:
    C:/Program Files/Hurl/nmh-manifest.json (default)
    C:\Program Files\Hurl\nmh-manifest.json
    -nmh-manifest.json path values tried:
    C:\Program Files\Hurl\Launcher.exe (default)
    C:\Program Files\Hurl\Launcher.exe (double-slashes suggested by MS Native Messaging reference article)
    C:\Program Files\Hurl\launcher.exe (someone said the exe should be all lowercase)

The current content of my files:
Registry Key: HKEY_CURRENT_USER\Software\Microsoft\Edge\NativeMessagingHosts\com.3721tools.hurl
-value: C:\Program Files\Hurl\nmh-manifest.json
nmh-manifest.json file: (id matches the ID reported in edge extensions manager)
{
"name": "com.3721tools.hurl",
"description": "Hurl Proxy Native Messaging Host",
"path": "C:\Program Files\Hurl\Launcher.exe",
"type": "stdio",
"allowed_origins": ["chrome-extension://mgccpgmjnjiaohhhkmcfgfegpfeoonem/"]
}

Please feel free to advise! Thanks again!

@U-C-S
Copy link
Owner

U-C-S commented Dec 14, 2024

There's a small issue with the install-nmh.ps1 script.... I went throught the same troubleshooting as you did, sorry for that 😅

I recently pushed a fix in this commit: 04f9f4f

You can make the same change to the script in your system, delete the old manifest file generated by the script and run the updated script again.

@U-C-S U-C-S added bug Something isn't working Fixed/Completed Commits related to this are in master, if the issue is still open, it's yet to be released labels Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed/Completed Commits related to this are in master, if the issue is still open, it's yet to be released
Projects
None yet
Development

No branches or pull requests

2 participants