- www_open_url(+Url)
- Open URL in running version of the users' browser or start a new
browser. This predicate tries the following steps:
- If a prolog flag (see set_prolog_flag/2)
browser is set
and this is the name of a known executable, use this. The
flag may be set to Command-Mode, where mode is one of fg
or bg, requesting Command to run in foreground or background
mode. Default is bg.
- Hand the URL to the desktop using desktop_open/2 from
library(desktop) if this library is available. On Windows we
use win_shell/2 if it is not.
- If a environment variable
BROWSER is set
and this is the name of a known executable, use this.
- Try to find a known browser.