>>> > And is xdg-open reliably available on BSD systems, so that we don't >>> > generate an opaque error message if that is not the case? >>> >>> I think it would work whether xdg-open is install or not because >>> `shell-command-guess-open' is defined by testing the presence of >>> xdg-open. So if xdg-open is not installed, `command' in the code above >>> will be nil and nothing will happen. >> >> Then why do we need to condition this by system-type at all? > > Juri implemented the command, so perhaps he could explain. I don't > understand why one doesn't just use `shell-command-guess-open' directly?
The current implementation is based on long discussions including bug#18132. So everyone is welcome to improve it, it's not cast in stone.