Otavio Salvador wrote:
> I didn't look the source but I think the use should be more or less
> like:
>
> client ask lib to connect
> lib try
> if sucess, show the image or like
> else report it can't
>
> Probably the else need to be improved. I think could be possible to
> detect, in lib, if is or not possible to contact the device due
> permission problems. So, if possible, it's the right place to do it.
Actually there is a first step "autodetect camera", libgphoto2 will return
GP_ERROR_MODEL_NOT_FOUND (-105) if none is found. This is the right place
to tell the user he may need to be in the 'camera' group.
Unfortunately I don't think it is possible to correctly detect permission
problems using /proc/ (and I don't think using /sys is an option for the
moment).
Regards,
Frederic
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]