Item8988: LatexModePlugin changes $ENV{HOME}. This causes action-at-a-distance problems for installers
Priority: Urgent
Current State: New
Released In:
Target Release: n/a
LatexModePlugin changes
$ENV{HOME}
, which if not set in
$Foswiki::cfg{Plugins}{LatexModePlugin}{home}
is set to
'/home/nobody'
, which messes up anything else which depends upon
$ENV{HOME}
.
For example,
$EN{HOME}
is used by
File::HomeDir
, which is called as part of
CPAN::Shell
, which is invoked by
tools/extender.pl
, which is called by the installer scripts.
Whatever it is using
$ENV{HOME}
for, it should be localized to this module.
Thanks!
--
DiabJerius - 07 May 2010
I've attached a patch which stores
$ENV{HOME}
in the
LMPcontext
, then uses it for only those
sysCommand
calls which it seems should require it. I've tried to localize it in as narrow a scope as possible. I added an extra parameter to
Render::makePNGs
to pass the value in for
mimetex
. I'm not familiar with that package, so if it doesn't need
HOME
, then one could remove that hack.
--
DiabJerius - 07 May 2010