Fork me on GitHub
#kaocha
<
2020-07-21
>
dominicm11:07:58

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

borkdude11:07:59

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.

dominicm15:07:57

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

borkdude15:07:34

Aha, thank you.

borkdude15:07:53

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

borkdude15:07:49

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

sudo apt-get install xdg-utils

dominicm17:07:17

Yeah, it will be installable in most distributions

dominicm17:07:37

Electron applications try falling back to calling chrome or Firefox directly

dominicm17:07:58

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

borkdude17:07:33

can you point me to such a spec?

dominicm17:07:56

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

dominicm17:07:49

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

plexus12:07:56

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