On 17/06/2025 23:27, Ihor Radchenko wrote:
Charles Choi writes:

Thanks for the heads up on XDG support for Org protocol being broken.
I will amend accordingly.

AFAIR, it is not 100% broken. It is broken after some version of
xdg-tools (discussed in the bug report). So, not all the users will be
affected.

Notice that xdg-open parses files itself in fallback code only. I can confirm that %F works with xdg-utils-1.1.3 in fluxbox session.

Normally xdg-open passes URLs to a handler specific to the running desktop environment: kde-open5, exo-open, etc. Neither xfce-4.18 nor plasma-5.27 passes URLs to %F. Either handler is invoked with no arguments at all or error dialog is displayed instead. I would say, it is a bug if some DE behaves otherwise and it may have consequences related to security.

I am unsure concerning specific applications, e.g. Firefox-128 ESR definitely parses XDG configuration itself. It is unclear to me what method it uses to launch a handler, but it passes no arguments in the case of %F.

P.S. I believe, org-protocol: handler should be merged with emacsclient-mail.desktop instead of emacsclient.desktop

Reply via email to