do not block camera for whole life time
Submitted by Marcus Meissner
Assigned to gvf..@..e.bugs
Link to original bug (#610261)
Description
Created attachment 154034 gp-lifetime.patch
call gp_camera_exit() after the initial setup.
this frees the USB port for access by other programs, like gphoto2 commandline or specialized capture tools (or f-spot, digikam, and other tools not using gvfs yet).
As soon as someone accesses the gvfs tree the camera will be grabbed and reinitialized (and then not freed again).
This is also better for camera attach-lifetime management which is currently not doable with libgphoto2. Inserting / Removing Cards for cameras is not really handled and other events.
The only thing where this is probably bad is for the iPhones which change the master storage prefix on every init. I opened a bug with Apple hgalf a year ago already, but its not closed yet. We could filter iPhones from calling gp_camera_exit() here.
Patch 154034, "gp-lifetime.patch":
gp-lifetime.patch
Version: 1.4.x