Netscape Helper Applications

Netscape Helper Applications

Post by steven_j_me.. » Sun, 31 Dec 1899 09:00:00



I am planning on writing a small helper
application to read a simple file type.  Not a
plugin, but a helper application.  My problem is,
how does the file name (that launched the
associated helper application) get communicated to
the helper application.  It doesn't seem to come
through argv.  Is there some API that I need to
link in?

Steve

--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---

 
 
 

Netscape Helper Applications

Post by Navindra Umane » Sun, 31 Dec 1899 09:00:00



> I am planning on writing a small helper
> application to read a simple file type.  Not a
> plugin, but a helper application.  My problem is,

Why does the helper application have to be Netscape specific?  What is
this file type?

Quote:> how does the file name (that launched the
> associated helper application) get communicated to
> the helper application.  It doesn't seem to come
> through argv.  Is there some API that I need to
> link in?

No, it goes in through argv.  For example, I have rvplayer specified
as helper application: "rvplayer %s".  Netscape replaces %s with the
filename.

-N.
--
"These download files are in Microsoft Word 6.0 format.  After unzipping,
these files can be viewed in any text editor, including all versions of
Microsoft Word, WordPad, and Microsoft Word Viewer."  [Microsoft website]
           < http://www.cs.mcgill.ca/~navindra/editors/ >

 
 
 

Netscape Helper Applications

Post by Hexdum » Sun, 31 Dec 1899 09:00:00



Quote:>I am planning on writing a small helper
>application to read a simple file type.  Not a
>plugin, but a helper application.  My problem is,
>how does the file name (that launched the
>associated helper application) get communicated to
>the helper application.  It doesn't seem to come
>through argv.  Is there some API that I need to
>link in?

>Steve

IIRC, you need to specify %s after the program in Netscape, for example
"/usr/bin/playmidi %s". This drove me nuts with rvplayer until I found this
out. Don't know if this is the problem or not but I thought I'd mention it.