On 03/17/2011 04:11 PM, Francis Russell wrote:
> So I suppose it is the exec-commands module despite the fact that the
> commands are currently specified in the lcd conf file.
>
> I would imagine that there's no requirement for one application
> executing another to set the HOME environment variable, but letting it
> become "/" is definitely a bug. If laptop-mode is going to execute
> commands, the environment should either be clean or sane. The executed
> command has no way of knowing that it shouldn't make its configuration
> files in / and the user of laptop-mode has no way to know that the
> application to be run might be passed strange environment variables.
We pass no strange environment variables. All that we need is set inside
the tool itself.
We run in 'sh' compliant mode and we run as a non-login shell.

In laptop-mode, I can't house an environment for every foreign command
that can be run. That's why I gave you the exec-commands example.

-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to