[Project_owners] [Fwd: [Bug 188733] Need method to ensure usershave Xprt (eg an Xprt XPI)]

Roland Mainz roland.mainz at informatik.med.uni-giessen.de
Sun Nov 16 15:32:43 EST 2003


Pete Collins wrote:

> > Can anyone (e.g. a XPI package expert) try to answer the questions below
> > ?
> >
> > -------- Original Message --------
> > Subject: [Bug 188733] Need method to ensure users have Xprt (eg an Xprt
> > XPI)
> > Date: Sun, 6 Jul 2003 16:01:00 -0700 (PDT)
> > From: bugzilla-daemon at mozilla.org
> > To: Roland.Mainz at informatik.med.uni-giessen.de
> >
> > http://bugzilla.mozilla.org/show_bug.cgi?id=188733
> > [snip]
> >
> > Questions/issues so far:
> > 1. I need to know a way to start a shell script when Mozilla is being
> > launched
> > (the script is part of the XPI)
> > 2. I need to know how to _GET_ a shell environment variable from within
> > the XPI
> > glue (JavaScript?!)
> > 3. I need to know how to _SET_ a shell environment variable from within
> > the XPI
> > glue (JavaScript?!) that later called to libc/getenv() will return that
> > value
> > 4. Since the XPI package contents may be installed in the ~/.mozilla
> > profile dir
> > it is required to put Xprt binaries for different platforms into
> > different
> > subdirs to ensure that multiple packages can be installed without
> > problems. I
> > have no clue how this can be implemented using XPI - and that's why I
> > need a
> > guru for that...
> 
> Answer: Install protozilla

Well, I tried it... and I've examined now most of the XPI stuff from
mozdev.org I could get my claws on, too... still no success... maybe I
am too stupid or too tired (brain uptime: ~52h) now to get it somehow
working... xx@@@!!! (the only success in the way to the Xprint XPI is
that I reduced the Linux binary tarball size from 2.5MB down to ~680KB -
still including full PostScript/PDF/TrueType/OpenType and font download
support... :) ...

Maybe someone here from the list can hack me a small demo XPI which does
the following tasks (as I said... it seems I am too stupid to get it
working...):
1. On installation time a tar.gz placed within the XPI gets unpacked in
the chrome dir (not *.jar, I mean *.tar.gz)
2. On deinstallation time the files created with step [1] will be
removed again
3. On Mozilla startup the shell script "start_my_daemon.ksh" (which is
part of the XPI) is being called
4. On Mozilla shutdown the shell script "kill_my_daemon.ksh" (which is
part of the XPI) is being called

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) Roland.Mainz at informatik.med.uni-giessen.de
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 2426 901568 FAX +49 2426 901569
 (;O/ \/ \O;)


More information about the Project_owners mailing list