GNOME Bugzilla – Bug 795311
Use stable URIs for PTP backend
Last modified: 2018-04-18 23:07:56 UTC
In Bug 744267, I changed the URI generation logic for the MTP backend to use the device ID instead of the usb bus/dev numbers so that URIs would be stable across plug/unplug events. I will now make an equivalent change for the PTP backend.
Created attachment 371077 [details] [review] Switch to a stable device URI Mostly similar to the MTP version. I tested with the old monitor to verify the compatibility code.
Review of attachment 371077 [details] [review]: Thanks, looks ok, works ok. ::: monitor/gphoto2/ggphoto2volumemonitor.c @@ +253,2 @@ volume = g_gphoto2_volume_new (G_VOLUME_MONITOR (monitor), + device, nitpick: unrelated whitespace change
Pushed as efc76d0cd84df8904ea661cb0e04728e3e6205d4 Thanks.