On Tue, May 12, 2009 at 10:19:48PM +0200, Joachim Breitner wrote: > Am Dienstag, den 12.05.2009, 22:56 +0300 schrieb Andrei Popescu: > > Some more investigation reveals that the SHELL environment is not > > properly set on first start, but if nodm is restarted > > (/etc/init.d/nodm restart) then everything is fine. [...] > This leads to the question whether nodm should clean it’s environment, > and it probably should – again, help would be appreciated in seeing what > xdm or gdm do: What of their environment do they retain, what do they > delete and what do they actively set.
For sure, everything that is significant nodm should set it (and the bug here is that nodm does not set $SHELL, which is significant). The question is what to do with the rest: leave them or clear them? Leave them means potentially leaving rubbish around (especially in the case of root restarting nodm manually). On the other hand, does it mean leaving around some useful variables set during the boot process that we do not know about? Clearing them means that restarting nodm manually yields the same session as when it starts by itself at boot, which is desirable. However, if there are variables that we do not know of that are set during boot, we end up getting rid of them. Implementation is simple both ways: I cannot decide which one is better, though. Ciao, Enrico -- GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enr...@enricozini.org>
signature.asc
Description: Digital signature