Christian Moe <[email protected]> writes: > Can this sometimes create problems? The original bug report at > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74467 described this > solution and said it "is not possible, as it allows 'xdg-open' to pass > local files as "file:/" URL's if it wants to." And the problem with > that, as I understand the discussion is that thread, because Emacs > doesn't currently handle "file:/" URLs correctly when passed that way. > > I don't see any problem with opening files with emacsclient myself after > testing this, though. It may be that it's not a problem on my system > (Mint). Or that I have not tested correctly (test procedure: editing a > copy of emacsclient.desktop in ~/.local/share/applications, running > update-desktop-database there, and opening a local file with > emacsclient).
I think that the problem is that Emacs will be registered to open file://path/to/file type of links, but Emacs currently fails to open path/to/file in such scenario. Instead, Emacs will try opening file named literally "file://path/to/file". I think the solution is registering a separate protocol just for org-protocol, but the discussion has not concluded. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
