Re: Accessing global environment variables in X startup
Florian Boor <[email protected]> Sat, 19 Aug 2006 16:37:27 +0200
| Newsgroups | gmane.comp.handhelds.gpe |
|---|---|
| Message-ID | <[email protected]> |
Hi, Paul Sokolovsky wrote: > I'm working on improving dynamic mouse/touchscreen handling in GPE, > i.e. letting it automatically use input which is present (and not use > one which is not). The first and rather obvious thing is touchscreen > calibration: if there's no TS, it makes no sense to calibrate it, > especially that xtscal seem to be hardcoded to expect exactly a TS > device, not arbitrary input device. thats a good idea, i can imagine that we might face this problem on several platforms. > The fix would be trivial, like: Fine for me so far... > However, I found that $TSLIB_TSDEVICE is not set there, and > generally, env is empty in Xinit. I traced this too clearenv() > call in gpe-dm.c,a nd it's present since rev 1.1 in CVS. > > Is there reason why it gpe-dm clears environment, which outweights > flexibility of parameter passing via it? If not, I'd like to propose > following patch: We should try to find out why this is done first. I can imagine that you need a clean environment when you switch to a new user or some security constraints. Maybe Phil has an idea about this. Greetings Florian -- The dream of yesterday Florian Boor is the hope of today Tel: 0271-7411487 and the reality of tomorrow. [email protected] [Robert Hutchings Goddard, 1904] [email protected] 1D78 2D4D 6C53 1CA4 5588 D07B A8E7 940C 25B7 9A76