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

Capturing only works only works if protocol is exposed as false intially under Firefox #49

Open
Thaodan opened this issue Nov 2, 2022 · 4 comments

Comments

@Thaodan
Copy link

Thaodan commented Nov 2, 2022

Hey, I've noticed that registering the protocol only works for me with Firefox (104) if I first expose the org-protocol with false and then click a link with the org-protocol like this:
data:text/html,<a href="org-protocol://resolve?domain=Bold">Link</a>

Source:
https://www.reddit.com/r/firefox/comments/6p6470/comment/dpap5ok/?context=3

@alphapapa
Copy link
Owner

Hi,

I'm not sure I completely understand. Are you proposing an update to the documentation?

@Thaodan
Copy link
Author

Thaodan commented Nov 5, 2022 via email

@alphapapa
Copy link
Owner

Ok, feel free to send a pull request for the readme. Please mention this in a separate paragraph so it's clear that we're not sure whether it's always necessary.

@stefan2904
Copy link

stefan2904 commented Apr 17, 2023

Since I needed to configure a fresh Firefox, I just tried to reproduce this. After setting network.protocol-handler.expose.org-protocol to false (and no other org-protocol related flags), and using your html, I end up with this dialog, where clicking on the right button does not open any further dialogs and nothing is invoked:

image

Than I noticed that firefox automatically figured out which desktop entry to use (probably using xdg):

image

But opening any org-protocol link still does not invoke it. (manually invoking xdg-open "org-protocol://foo" works.)

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

No branches or pull requests

3 participants