I've got a Gumstix system that uses an LCD and a touchscreen, but without
a desktop manager. I've created a service to load touchscreen cal data, or
launch the calibrator program if it doesn't exist, but I can't figure out
how to ensure that it starts after the touchscreen device appears. I think
t
On Fri, Aug 30, 2013 at 1:22 PM, Colin Guthrie wrote:
> 'Twas brillig, and David Herrmann at 30/08/13 14:50 did gyre and gimble:
>> +subsystem = subsystem ? : "";
>> +
>
> zomg!!11eleven! This makes perfect sense but somehow this is the first
> time I've seen this syntax before where the v
'Twas brillig, and David Herrmann at 30/08/13 14:50 did gyre and gimble:
> +subsystem = subsystem ? : "";
> +
zomg!!11eleven! This makes perfect sense but somehow this is the first
time I've seen this syntax before where the value between ? and : is
inherited from the test itself... nice!
udev_device_get_subsystem() may return NULL if no subsystem could be
figured out by libudev. This might be due to OOM or if the device
disconnected between the udev_device_new() call and
udev_device_get_subsystem(). Therefore, we need to handle subsystem==NULL
safely.
Instead of testing for it in