This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-04
Channels
- # aleph (2)
- # announcements (1)
- # biff (1)
- # calva (16)
- # cider (4)
- # clojure (45)
- # clojure-argentina (1)
- # clojure-europe (21)
- # clojure-nl (1)
- # clojure-norway (18)
- # clojure-uk (7)
- # clojurebridge (1)
- # clojurescript (3)
- # clr (3)
- # cursive (21)
- # datomic (4)
- # fulcro (4)
- # graalvm (3)
- # holy-lambda (8)
- # honeysql (22)
- # lsp (3)
- # malli (3)
- # nbb (1)
- # off-topic (3)
- # portal (13)
- # re-frame (3)
- # reagent (7)
- # releases (1)
- # shadow-cljs (1)
Hi guys! I have two computers with different behaviour when I open portal. One open a chrome window and the other open a tab in firefox. Did you know how to setup the open in the browser?
Opening in the browser is (I believe) the default behavior, so whatever you're using to launch portal is likely specifying that it should launch in another window. Do you know where you're calling (portal.api/open)
?
I use this for the two computers: https://cljdoc.org/d/djblue/portal/0.52.2/doc/editors/emacs
Oh I'm looking more closely at your question and just realizing that you just have to pick your default browser, which is an OS-level setting
The two computers are firefox has default browser (macos) but one open a chrome window (as an electron app)
Oh, that is unexpected! Can you paste in the lines from your emacs.d/
that open portal? Maybe it's hidden in there
If you want to prevent using chrome's app mode, you can opt-out via (portal.api/open {:app false})
@U24FM0Y3U here my config about portal in emacs:
;;
;; PORTAL CONFIGURATION
;;
(defun portal.api/open ()
(interactive)
(cider-nrepl-sync-request:eval
"(do (ns dev) (def portal ((requiring-resolve 'portal.api/open))) (add-tap (requiring-resolve 'portal.api/submit)))"))
(defun portal.api/clear ()
(interactive)
(cider-nrepl-sync-request:eval "(portal.api/clear)"))
(defun portal.api/close ()
(interactive)
(cider-nrepl-sync-request:eval "(portal.api/close)"))
@U1G869VNV I will try thatMy assumption for the difference of behavior is that your machine that uses firefox by default doesn't have chrome installed.

Thanks guys for your time! @U1G869VNV you are right!