kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
dominicm 2020-07-21T11:08:58.447Z

You maybe want to vary it. The figwheel cljs env lets you customize it.

borkdude 2020-07-21T11:18:59.447800Z

FWIW, here is the babashka version of browse-url: https://github.com/borkdude/babashka/blob/master/src/babashka/impl/clojure/java/browse.clj All it does is call the OS-specific way of opening a preferred application for some file extension.

plexus 2020-07-21T12:05:56.448600Z

the clojurescript browser env calls this, we don't have a lot of control over that

dominicm 2020-07-21T15:43:57.448700Z

fwiw, many linux machines don't have xdg-open

borkdude 2020-07-21T15:46:34.448900Z

Aha, thank you.

borkdude 2020-07-21T15:46:53.449100Z

Any ideas what to try next if xdg-open is not there?

borkdude 2020-07-21T15:48:49.449300Z

In an Ubuntu in WSL2 it wasn't there. I could get it with:

sudo apt-get install xdg-utils

dominicm 2020-07-21T17:08:17.449500Z

Yeah, it will be installable in most distributions

dominicm 2020-07-21T17:08:37.449700Z

Electron applications try falling back to calling chrome or Firefox directly

dominicm 2020-07-21T17:09:58.449900Z

Technically, you should work without a specific xdg cli being installed, and work to the spec

borkdude 2020-07-21T17:12:33.450100Z

can you point me to such a spec?

dominicm 2020-07-21T17:18:56.450300Z

https://wiki.archlinux.org/index.php/Default_applications apparently it's via the gio api. Which I can only imagine is backed by dconf or something

borkdude 2020-07-21T17:26:28.450900Z

thanks

dominicm 2020-07-21T17:37:49.451100Z

Np. It's honestly more of me being a nuisance than anything though. It's probably enough to gracefully handle it not being there.