From d6df1673b6835634baeb2710a1016945ab04f7c9 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 7 Jul 2026 17:22:38 -0700 Subject: oni-browse-url: Use default browser on MacOS Using the generic browser with the ‘/opt/homebrew/bin/glide’ executable doesn't work, it throws the error: Couldn't load XPCOM. Using the default browser uses the ‘open’ executable on MacOS, and that works fine. --- oni-browse-url.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oni-browse-url.el b/oni-browse-url.el index 33260d2..d6a94f0 100644 --- a/oni-browse-url.el +++ b/oni-browse-url.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2022.1213.070851 +;; Version: 2026.0707.172201 ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -71,8 +71,8 @@ before this filter." (t args)))) (setq browse-url-browser-function - (if (eql system-type 'windows-nt) - 'browse-url-default-windows-browser + (if (member system-type '(windows-nt darwin)) + 'browse-url-default-browser 'browse-url-firefox)) ;; Taken from https://mas.to/@ParetoOptimalDev/109378647927115065 -- cgit v1.3-2-g0d8e