aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-07-07 17:22:38 -0700
committerGravatar Tom Willemse2026-07-07 17:22:38 -0700
commitd6df1673b6835634baeb2710a1016945ab04f7c9 (patch)
tree7f0904eb847689b5c55f0766f64121bdcba6add7
parent9011117e2554bf837d5224cd568ebaa89657a658 (diff)
downloademacs-config-d6df1673b6835634baeb2710a1016945ab04f7c9.tar.gz
emacs-config-d6df1673b6835634baeb2710a1016945ab04f7c9.zip
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.
-rw-r--r--oni-browse-url.el6
1 files 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 <tom@ryuslash.org>
;; 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