Re[2]: Accessing global environment variables in X startup

Paul Sokolovsky <[email protected]> Sat, 19 Aug 2006 18:06:56 +0300
Newsgroups gmane.comp.handhelds.gpe
Message-ID <[email protected]>
Hello Florian,

Saturday, August 19, 2006, 5:37:27 PM, you wrote:

[]

>>  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.

  It turned out that it doesn't help as envvars are not being passed
that nice around anyway. So, no need to touch gpe-dm.

  I ended up just using OE.dev udev rules to create
/dev/input/touchscreen0 and checking for that. I'll post the patches a
bit later (small, but arguably hacky), when I test them better, but I
just was able to boot same Familiar GPE image into real h4000 and
QEMU/ARMIntegrator, and have pointer device working out of the box in
both.

> Greetings

> Florian




-- 
Best regards,
 Paul                            mailto:[email protected]