On 2019-06-24 2:20 p.m., Damon Lynch wrote:
As a workaround, it is possible to query the port information from GIO by
getting the mount's volume and querying its identifier using
g_volume_get_identifier () [1] by passing it the Unix identifier [2]. That
way you get the port for the device, which matches the port reported by
libgphoto2. However, the GIO developers have marked the Unix identifier as
"deprecated and should not be used in newly-written code." Which to me
indicates they're possibly planning to simply end identification of devices
using the port.


This is the code I wrote a few month ago:

https://gitlab.gnome.org/GNOME/niepce/commit/270fc2d0e0ca1a8d1a9665d7bef57fa7c54d6f6b

And yes it will probably break. I'm not even sure who to talk to.

Hub


_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

Reply via email to