lagrange icon indicating copy to clipboard operation
lagrange copied to clipboard

External protocol handlers

Open t-900-a opened this issue 4 years ago • 6 comments

Would be implemented similar to mozilla firefox how you can be asked which application to open the uri with. http://kb.mozillazine.org/Register_protocol

t-900-a avatar Mar 19 '21 01:03 t-900-a

Noting that this is separate from #135 in that one is choosing applications based on URI scheme and not the media type.

skyjake avatar Mar 19 '21 13:03 skyjake

Hello, I have made kind of a hacky patch for something like this using xdg-open. I am guessing you will want to do it in a more sophisticated/robust way. But it seems to work on my Ubuntu computer.

gemini://biomimetic.me/lagrange.gmi

runvnc avatar Apr 03 '21 01:04 runvnc

I am guessing you will want to do it in a more sophisticated/robust way.

Yeah, the solution here should be cross-platform or at a minimum #ifdef'd with iPlatform* defines. Thanks anyway!

skyjake avatar Apr 05 '21 12:04 skyjake

My intention, which I felt was fairly clear, was to provide a simple patch that other users could build off of if they so desired and it happened to suit their needs (such as working on their platform), as a temporary option while waiting for your solution. I would have made a PR if I had been asking you to accept something.

runvnc avatar Apr 05 '21 12:04 runvnc

Please do not repeat mozilla mistake of having its own type/software association in Firefox. My OS knows what software should be used to open a file and lagrange should trust it.

MCMic avatar Apr 10 '21 17:04 MCMic

Please do not repeat mozilla mistake of having its own type/software association in Firefox. My OS knows what software should be used to open a file and lagrange should trust it.

But it should be something that can be overridden. My use case for this is that I have a browser profile for work and another for personal. I want URLs opened through gemini to open in a specific profile that is not my default.

tedwardd avatar Mar 14 '23 19:03 tedwardd