GNOME Bugzilla – Bug 520120
Export metadata for MTP devices
Last modified: 2018-09-21 16:18:45 UTC
Here's a few features that Rhythmbox would need to use the gphoto2 gvfs backend. - Export the device's serial number through G_FILE_ATTRIBUTE_ID_FILESYSTEM - Allow get/set of the file metadata through the xattr namespace
There's probably a few other things we want like battery level; could also just be an attribute e.g. G_FILE_ATTRIBUTE_DEVICE_BATTERY_LEVEL. Might be useful on obex:// too. I don't know. Alex is probably not going to like it. I wonder how hard this is to implement. Though libgphoto2 has a way of exporting the port so I think, if we want, we can directly send PTP/MTP commands. I don't know.
I talked to _Marcus_ on #gphoto and I was told there was already exported API to get/set metadata on objects using gphoto2.
ah, so this should be easy to add
Please don't use "standard" namespaces like xattr for things that are not identical to extended attributes. Just make your own namespace.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gvfs/issues/39.