💾 Archived View for nickj.flounder.online › gemlog › 2021-08-02.gmi captured on 2024-06-16 at 12:15:30. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
CW: windows
You're on windows and want the browser to hand off gemini: links to a gemini client.
Lagrange mentions this in the help section:
On macOS and Windows, Lagrange registers itself as a "gemini:" URL scheme handler, so you can click on Gemini links in any application to open Lagrange with that URL.
I used the portable version and this doesn't seem to happen.
I don't know about other clients.
Use regedit to create a gemini protocol handler - this is a .reg file that failed when I tried it, but has all the strings you need to create it manually:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\gemini] @="URL:gemini Protocol" "URL Protocol"="" [HKEY_CLASSES_ROOT\gemini\shell] [HKEY_CLASSES_ROOT\gemini\shell\open] [HKEY_CLASSES_ROOT\gemini\shell\open\command] @="\"F:\PortableApps\lagrange\lagrange.exe\" \"%1\""
See this series of images to get a clearer idea of the set up:
create HKEY_CLASSES_ROOT\gemini as illustrated
subkey command with "path\to\client\prog.exe" "%1"
Running agate and visiting gemini://localhost in the html browser brings up index.gmi on lagrange.
Likewise, clicking on the photos link on this web page brings up photos.gmi in lagrange
<!DOCTYPE html> <html> <head> <title="gemini test" /> </head> <body> <a href="gemini://localhost/photos.gmi">photos</a> </body> </html>
I got the idea from here:
which also gives details for mac and linux.
out of date micro~s documentation here: