[Pkg-phototools-devel] Bug#859695: Bug#859695: libgphoto: detects mounted file system as camera if dcim dir exists

Herbert Fortes terberh at gmail.com
Thu Apr 6 12:57:23 UTC 2017


Hi Greg Schmidt,

Thanks for your report.

> Package: libgphoto2-6
> Version: 2.5.12-1
> Severity: normal
> File: libgphoto
> 
> Dear Maintainer,
> 
> Camera auto detection [libgphoto2_port/disk/disk.c gp_port_library_list()] will detect a mount point as a camera if a dcim directory exists. Although some mount points are excluded if a certain name or type is seen. This strategy allows other mount points to become cameras if a dcim directory is created.
> 
> This was confusing. Since autodetect is a default. I just expected that it would detect my camera and get files from there. But it found this other disk partition and was manipulating its files. Since I was using darktable it was scattering sidecar files all over my HOME directory and putting a bunch of cruft in its database.
> 
> Wouldn't it be better if the user/admin had to specify what disks could be treated as cameras. I renamed the dcim directory. The mount point was no longer a camera! Now I just need to clean up darktable.
> 
> Home directories on my system are lvm partitions, and are listed in /etc/fstab and /etc/mtab if a user creates a dcim directory at his home gphoto will detect his home directory as a camera.
> 

I think it is a wishlist bug. You want a
different behavior. Is that it ?

> Wouldn't it be better if the user/admin had to specify what disks could be treated as cameras.



Regards,
Herbert



More information about the Pkg-phototools-devel mailing list