Lagrange [release]

Fix opening of mailto: links

=> Alyssa Rosenzweig

Sun Nov 1 20:21:56 2020 -0500

This code path is used for opening both http/s and mailto links. On

macOS, open is used generically handling both nicely. On Linux,

x-www-browser was used for both, meaning it would attempt to open mailto

links with the browser. This -does- work but is clunky. On my system, my

defaults are Firefox for web and mutt for email, so if I clicked a

mailto, Firefox would open (slow!) just to go out of focus as it opens

mutt.

Let's just mirror the macOS behaviour and use xdg-open for both kinds of

links. Then the browser will be used for http/s and the mail client for

mailto and everyone's happy.

Signed-off-by: Alyssa Rosenzweig alyssa@rosenzweig.io

 src/app.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

=> Diff (Colored) | Diff (Colored, Plain Text) | 🔨 Patch

=> Parent 4355d100 | Repository

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/release/commits/98f26c5e5290103d30bd7395e81f793e4ff09b3d
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
27.011128 milliseconds
Gemini-to-HTML Time
0.50092 milliseconds

This content has been proxied by September (ba2dc).