GNOME Bugzilla – Bug 595827
no file and folder deletion on cameras which support delete through libgphoto2/gvfs
Last modified: 2010-05-09 05:37:37 UTC
Binary package hint: gvfs found in Ubuntu 8.10 (with all the latest updates) can't be tested in 9.04 due to another bug which prevents access altogether camera used is a Canon EOS 10D running in 'Normal' communication (not PTP) bug resides somewhere between nautilus and libgphoto2: when trying to delete files or folders off an attached camera, and error is returned by nautilus saying the the operation is "Not Supported" libgphoto2 supports the deletion of file and folders off of cameras, including the canon EOS 10D the program gThumb is able to delete files off of the very same camera by calling "gp_camera_file_delete" directly through libgphoto2 on the same installation the use of "gp_camera_file_delete" in gThumb can be found in the source code (2.10.0 from sourceforge) in '/src/dlg-photo-importer.c' on line 1267 problem seems to be in process gvfsd-gphoto2 - it's cpu % increases when trying to delete files, and it only appears when the camera is plugged in ProblemType: Bug Architecture: amd64 DistroRelease: Ubuntu 8.10 ExecutablePath: /usr/lib/gvfs/gvfsd-gphoto2 Package: gvfs-backends 1.0.2-0ubuntu3 ProcEnviron: SHELL=/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games LANG=en_AU.UTF-8 SourcePackage: gvfs Uname: Linux 2.6.27-14-generic x86_64
Bug Reported upstream from Launchpad
UPDATE: affects newer versions of GVFS tested on Ubuntu 9.10 - Karmic Koala Alpha 6
Created attachment 144663 [details] [review] Patch to add support for cameras which can delete but not be written to Patch for GVFS Version: 1.4.0 Adds support for "GP_STORAGEINFO_AC_READONLY_WITH_DELETE", which is used in libgphoto2 for cameras which cannot be written to, but which files and folders can be deleted -adds a new boolean, "can_delete" -added check for "GP_STORAGEINFO_AC_READONLY_WITH_DELETE": +"GP_STORAGEINFO_AC_READWRITE" and "GP_STORAGEINFO_AC_READONLY_WITH_DELETE" both set "can_delete" to true -changes file attribute check for deletion form "can_write" to "can_delete"
Code has been fixed. Appears to have been fixed with this patch in/by GVFS 1.6