BTW, I discovered this because when I tried calling that function in eshell (with eat-eshell-mode enabled, btw lol) it complained that xdg-open was not install.
;() Just a little story about the discovery. I think it would be great to not worry about installing xdg-open if you install emacs-embark and it depends on it.