[18867] in Athena Bugs

home help back first fref pref prev next nref lref last post

NPX_PLUGIN_PATH

daemon@ATHENA.MIT.EDU (Abby Fox)
Wed Mar 7 17:50:17 2001

Message-Id: <200103072250.RAA31733@n42-202-1.mit.edu>
To: bug-infoagents@MIT.EDU
Date: Wed, 07 Mar 2001 17:50:11 -0500
From: Abby Fox <ajfox@MIT.EDU>

The recent change to make the netscape launch script include
~/.netscape/plugins in $NPX_PLUGIN_PATH seems to have several
side-effects:

 - on solaris, the java plugin is not loaded

 - if the user has set $NPX_PLUGIN_PATH, it is ignored

 - on linux and irix, ~/.netscape/plugins is not added to the path 
   (unless the user happens to have set $NPX_PLUGIN_PATH)

I'm appending a couple of examples from copying the script local and
looking at the path, but the culprit seems to be the following line:

   NPX_PLUGIN_PATH=${NPX_PLUGIN_PATH:+$HOME/.netscape/plugins}:/mit/acro/\
   nsplugins:${NS_HOME}/plugins:${archtop}te/PlugIn

If I'm parsing things correctly, the first bit substitutes
~/.netscape/plugins for $NPX_PLUGIN_PATH if it's already set, otherwise
uses neither.  (It looks like the old version used :- so that
~/.netscape/plugins would be substituted if $NPX_PLUGIN_PATH was *not*
already set, which seems like better logic, but maybe the thing to do is
something with [ -z $NPX_PLUGIN_PATH ] instead.)

The java plugin path gets set earlier in the script:

   SunOS)
       NPX_PLUGIN_PATH=/afs/athena.mit.edu/software/java_v1.3.0/distrib/\
       sun4x_57/jre/plugin/sparc${NPX_PLUGIN_PATH+:}$NPX_PLUGIN_PATH

which explains why the script is eating it now (and why the old version
would have ignored ~/.netscape/plugins on solaris).

--Abby



Linux, no customizations:

  :/mit/acro/nsplugins:/var/athena/infoagents/arch/i386_linux22/MIT-only/\
  netscape/plugins:/var/athena/infoagents/arch/i386_linux22/te/PlugIn

Linux, after "setenv NPX_PLUGIN_PATH foo"

  /afs/athena.mit.edu/user/e/c/eclass1/.netscape/plugins:/mit/acro/\
  nsplugins:/mit/infoagents/arch/i386_linux22/MIT-only/netscape/plugins\
  :/mit/infoagents/arch/i386_linux22/te/PlugIn

Solaris, no customizations:

  /afs/athena.mit.edu/user/e/c/eclass1/.netscape/plugins:/mit/acro/\
  nsplugins:/mit/infoagents/arch/sun4x_57/MIT-only/netscape/plugins:/mit\
  /infoagents/arch/sun4x_57/te/PlugIn

Solaris, after "setenv NPX_PLUGIN_PATH foo"

  /afs/athena.mit.edu/user/e/c/eclass1/.netscape/plugins:/mit/acro/\
  nsplugins:/mit/infoagents/arch/sun4x_57/MIT-only/netscape/plugins:/mit\
  /infoagents/arch/sun4x_57/te/PlugIn






home help back first fref pref prev next nref lref last post