openbsd-ports/devel/xdg-utils/pkg
..
DESCR
PLIST
README

$OpenBSD: README,v 1.6 2012/10/18 13:17:36 ajacoutot Exp $

+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------

By default, xdg-open(1) opens URLs using a predefined order of known
browsers executables. To change this behavior and set up a default
WWW browser, the "BROWSER" variable needs be set to the corresponding
executable.

e.g. ~/.profile
export BROWSER="firefox"

Alternatively, for applications that follow the XDG specification,
xdg-mime(1) can query/set the default utility for particular mime type.
e.g.
    $ xdg-mime default firefox.desktop text/html
    $ xdg-mime query default text/html
    firefox.desktop