Look up or launch the handler for a URI. URIs are in the form scheme:other
and the handler for a given scheme is <Choices>.rox.sourceforge.net/URI/scheme
To open up a web page in the user's prefered web browser:
# Try firefox instead
pid=os.spawnlp(os.P_NOWAIT, 'firefox', 'firefox',
- Return the handler for URI's of the named scheme (e.g. http, file, ftp,
etc.) The handler for file is always rox, otherwise it obtained from
the configuration directory rox.sourceforge.net/URI. None is returned if
no handler is defined.
The returned string may contain %s in which case it should be replaced
with the URI, otherwise append the URI (after a space).
- For a given URI pass it to the appropriate launcher.
rox.uri_handler.get() is used to look up the launcher command which is
executed. The process id of the command is returned (see os.wait()), or
None if no launcher is defined for that URI.