NSRemote is a simple python C module that is able to talk to X Window versions of Netscape via X Window
properties.
Here is a list of the functions defined in the module:
list : [(windowid, netscapeversion), ...] = list(dpyinfo="")
returns a list of windowids of possible netscapes running on
your X Display.
geturl : (url, title) = geturl(windowid=0, dpyinfo="")
queries netscape and returns the url and title of the
netscape with `windowid`. If window=0, then just pick one of the running netscapes.
openurl : openurl(url, windowid=0, dpyinfo="")
makes a request to netscape to open this 'url'. if windowid = 0, then just pick one of the running netscapes.
Notes:
On all methods:
If windowid == 0, then use the first netscape it finds.
The argument dpyinfo is the X Windows Display information
(e.g. "sealion.stanford.edu:0.0") for nsremote to talk to.
On all of the functions, if dpyinfo == "", then just use the contents of the DISPLAY environment variable.
----------------------------------------------------------------------
Files:
nsremotemodule.c -- python interface module
remote.c -- netscape reference implementation
vroot.h -- to handle virtual desktops correctly
test.py -- a test script
----------------------------------------------------------------------
Installation Notes:
o I have only tested it on Linux machines.
BUGS:
o It doesn't seem to work on HP-UX.
----------------------------------------------------------------------
|