Package: gnome-volume-manager
Version: 2.17.0-2
Severity: minor
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu hardy ubuntu-patch

Hi!

In Ubuntu we got reports that the 'dcim' folder is not always
capitalized the same way on camera media. The attached patch fixes
that. See https://launchpad.net/bugs/31190 for details.

Our changelog:

  * debian/gnome-volume-manager-gthumb: Accept arbitrary capitalization of
    the 'dcim' folder of photo volumes. (LP: #31190)

Thanks,

Martin

-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org
--- gnome-volume-manager-2.17.0/debian/gnome-volume-manager-gthumb
+++ gnome-volume-manager-2.17.0/debian/gnome-volume-manager-gthumb
@@ -4,8 +4,9 @@
   gthumb --import-photos
 else
   ROOT=${MOUNT_POINT}
-  if test -d "$ROOT/dcim"; then
-    ROOT="${ROOT}/dcim/"
+  dcim=$(ls "${ROOT}" | grep -i dcim)
+  if [ $? -eq 0 ]; then
+    ROOT="${ROOT}/$dcim"
     # if there is only one dir in the dcim directory, enter it
     if test $(/bin/ls -1 "${ROOT}" | wc -l)  -eq 1; then
       ROOT="${ROOT}/$(ls -1 "${ROOT}" | head -n 1)"

Attachment: signature.asc
Description: Digital signature

Reply via email to