On 12/12/2024 15:12, Rehan Deen wrote:
     javascript:location.href='org-protocol://store-link?'+new
     URLSearchParams({url:location.href, title:document.title});

Try to add "(void)"
javascript:(void)location.href='org-protocol:...

However bookmarklets are unsafe, you have to allow *web page* to launch a handler. In the case of an extension this permission may be given to the extension (but sprig/org-capture-extension still use the unsafe way).

but copying it from
`/usr/share/applications` to `~/.local/share/applications/`,

It should not be necessary. It should be enough to remove your own association. In some cases the -display="$DISPLAY" trick is important.

Interestingly, the `org-capture` extension for Firefox from
https://github.com/sprig/org-capture-extension continues to work without
producing this issue

It executes its code in another context.

Reply via email to