💾 Archived View for siiky.srht.site › kB45oC › gemini-handlers.gmi captured on 2023-01-29 at 15:43:01. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

➡️ Next capture (2023-03-20)

-=-=-=-=-=-=-

Custom Gemini Handlers

@siiky

2022/08/06

2022/08/06

Just learned how to setup custom handlers for the gemini scheme in Firefox and XDG.

For Firefox, go to about:config, create a new boolean variable named network.protocol-handler.expose.gemini and set it to false. Open a gemini URL, choose your Gemini client and you're good to go.

For XDG, create a desktop file in ~/.local/share/applications/ (or your equivalent) with the following content, replacing Lagrange with your client of choice:

[Desktop Entry]
Type=Application
Name=Lagrange Gemini Client
Exec=lagrange %u
StartupNotify=false
MimeType=x-scheme-handler/gemini;

And you're good to go, opening gemini URLs with xdg-open or clicking things should work now. It seemed to take effect immediately here.

Reference:

https://stackoverflow.com/questions/22729686/set-custom-protocol-handler-in-firefox

https://kb.mozillazine.org/Register_protocol#Firefox_3.5_and_above

https://unix.stackexchange.com/questions/497146/create-a-custom-url-protocol-handler