Module browsers

This module implements a simple proc for opening URLs with the user's default browser.

Procs

proc openDefaultBrowser(url: string) {.raises: [E_Base], 
                                       tags: [FExecIO, FReadEnv].}

opens url with the user's default browser. This does not block.

Under Windows, ShellExecute is used. Under Mac OS X the open command is used. Under Unix, it is checked if gnome-open exists and used if it does. Next attempt is kde-open, then xdg-open. Otherwise the environment variable BROWSER is used to determine the default browser to use.

Generated: 2014-03-11 21:26:43 UTC