On Wednesday 20 December 2006 01:01, Lars. Tunkrans wrote:
> Alexandros Papadopoulos wrote:
> > Dear all
> >
> > We have a lab with ~20 SunRays feeding off a Solaris 10 x86 machine
> > running srss 3.1 in kiosk mode.
> >
> > Our users would like to be able to view special image types (tiff etc)
> > ont he web that are not natively supported by firefox.

<snip>

> Start  a CAM session     verify that you are USER  utcu0
> Start firefox and  initialize all defaults to your likeing
>  Open all files that  you need to automate .  Run all media types  that
> you wish to
> program  and select to " always Open media X with App Y"  ,  Do NOT Exit
> FIREFOX.

Within firefox, a kiosk user is not allowed to declare new plugins. Choosing a 
helper application for TIFF images (e.g. /opt/csw/bin/display) enables one to 
display the images in an external viewer, but not within the browser, in page 
frames etc.

We would need a plugin (like plugger.so) for this, BUT firefox's interface 
does not allow us to declare a plugin as a handler. In firefox's preferences, 
the "Use this plugin" radio button is greyed out and the text box below it 
says "None Available" 

So I tried to 
hand-edit 
/var/opt/SUNWut/kiosk/prototypes/firefox/.mozilla/firefox/pluginreg.dat 
to include the following stanza:

<----------------------[pluginreg.dat]-------------------------------------->
/opt/sfw/lib/firefox/plugins/plugger.so:$
:$
1141820951283:1:1:$
Tiff Stuff with Plugger:$
plugger for TIFFs:$
3
0:image/tiff:TIFF image:tiff:$
1:image/x-tiff:TIFF image 2:tif:$
<--------------------------------------------------------------------------->

But about:plugins does not show plugger recognized by firefox.

>  From another terminal :   Copy  the whole
> /var/opt/SUNWbb/root/home/utcu0/.mozilla/*  hierarchy
>   to  /var/opt/SUNWut/kiosk/prototypes/firefox/.mozilla
> BEFORE YOU EXIT FIREFOX on the first screen.
> Then you rename
> /var/opt/SUNWut/kiosk/prototypes/firefox/.mozilla/firefox/*.default
> to  something like
> /var/opt/SUNWut/kiosk/prototypes/firefox/.mozilla/firefox/*.CAM
>
> Make sure  that the whole hierarchy ( including  dot-files ) is  set
> to   read-only  and owned by  root:root  so no-one
> can change the files in /var/opt/SUNWut/kiosk/prototypes/firefox/
>
> Then you edit your CAM application firefox parameters  so that the
> commandline  is
>
> /opt/sfw/bin/firefox -P CAM

The web interface on port 1660 does not seem to allow this. I passed the said 
argument to the invocation command of firefox, applied and logged out, only 
to find it had reverted to the default (non-argument) command once I logged 
in again.

I tried to write a wrapper script for opt/sfw/bin/firefox, which is itself a 
wrapper, which doesn't work too nicely - the environment variables do not 
reach the binary :-) But I'll look into that.

> This will convince firefox to  load  your  now  stored and canned
> firefox profile.
>
> This will  save all your  edits  into a Prototype  that from now will
> be  replicated  to any/all  CAM users.
> Then Cold-Restart  the CAM .
>
>
> Why  do you need  to do this ?
>
> Mainly  because  you want  to customize  the mimeTypes.rdf  file and
> prefs.js file  These files are saved  for each  user.
> root's   mimeType.rdf  file   is saved   in /.mozilla  ,   not  in the
> /opt/sfw/lib/firefox/default/profile/mimeTypes.rdf.

If I'm not mistaken the file that captures plugin information 
is .mozilla/firefox/pluginreg.dat and/or (?) .mozilla/pluginreg.dat. At least 
on this installation, mimeTypes.rdf is empty:

<---------------------[mimeTypes.rdf]-------------------------->
<?xml version="1.0"?>

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; 
xmlns:NC="http://home.netscape.com/NC-rdf#";>

  <Description about="urn:mimetypes">
    <NC:MIME-types>
            <Seq about="urn:mimetypes:root">
            </Seq>
    </NC:MIME-types>
  </Description>
</RDF>
<-------------------------------------------------------------->

As I only have intermittent access to the installation, I'll look into the 
matter further and let you know.

Thank you for your help!

-A
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to