• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
    • RDF quality heuristics
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

A.24 library(www_browser): Activating your Web-browser
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(www_browser): Activating your Web-browser
          • www_open_url/1
    • Packages
Availability::- use_module(library(www_browser)).(can be autoloaded)
Sourcewww_open_url(+URL)
Open URL in an external web browser. The reason to place this in the library is to centralise the maintenance on this highly platform- and browser-specific task. It distinguishes between the following cases:

  • MS-Windows
    If it detects MS-Windows it uses win_shell/2 to open the URL. The behaviour and browser started depends on the version of Windows and Windows-shell configuration, but in general it should be the behaviour expected by the user.

  • Other platforms
    On other platforms it tests the environment variable (see getenv/2) named BROWSER or uses netscape if this variable is not set. If the browser is either mozilla or netscape, www_open_url/1 first tries to open a new window on a running browser using the -remote option of Netscape. If this fails or the browser is not mozilla or netscape the system simply passes the URL as first argument to the program.
ClioPatria (version V3.1.1-40-g9d9e003)