Comment 26 for bug 990725

As an aside, I believe I know what happened when it initially didn't
work; I've identified a repro case for it, although 90% of users
shouldn't have this problem.

When we start enumerating media files on a storage device, we
explicitly check several well-known paths, such as /DCIM, /AVCHD and
so on. Because most cameras seem to 'prefer' MS DOS- or Joliet-safe
filenames, usually, camera-created directories' pathnames are all
uppercase or all lowercase. However, if one were to have something
like '/PRIVATE/avchd/' or /private/AVCHD' on a storage device, while
the camera would probably 'see' it as '/PRIVATE/AVCHD/' work correctly
with it, gPhoto, and by extension, Shotwell wouldn't enumerate images
or video correctly, because there currently doesn't seem to be a way
to tell gPhoto to treat a path as being case-insensitive, and if we do
a case-insensitive directory search on Shotwell's side, we may end up
with a scenario where we think 'yes, /private/avchd exists, tell me
what's in it', when what gPhoto actually sees is a different (by case)
path and (correctly) reports no files (since, as far as it's
concerned, the path we're trying to look in doesn't really exist).

As for how to fix this definitively: the way forward would be to make
gPhoto able to report the existence of .nomedia files, and once this
happened, we could remove the whitelisting mechanism entirely, meaning
a user or imaging device could put photos or videos into any path they
wanted and still have correct results.

On 28/05/2012, Launchpad Bug Tracker <email address hidden> wrote:
> This bug was fixed in the package shotwell - 0.12.3-0ubuntu0.1
>
> ---------------
> shotwell (0.12.3-0ubuntu0.1) precise-proposed; urgency=low
>
> * New upstream version, fixes:
> - Shotwell deletes tags at random (lp: #999108)
> - shotwell's unity progress bar hangs halfway across (lp: #987046)
> - Shotwell will not detect mts moviefiles on memory card (lp: #990725)
> -- Sebastien Bacher <email address hidden> Wed, 16 May 2012 15:29:40 +0200
>
> ** Changed in: shotwell (Ubuntu Precise)
> Status: Fix Committed => Fix Released
>
> --
> You received this bug notification because you are subscribed to
> shotwell in Ubuntu.
> https://bugs.launchpad.net/bugs/990725
>
> Title:
> Shotwell will not detect mts moviefiles on memory card
>
> Status in “shotwell” package in Ubuntu:
> Fix Released
> Status in “shotwell” source package in Precise:
> Fix Released
>
> Bug description:
> Expected behavior: Shotwell will detect and import pictures als well
> as movies files. The latter being of type avchd and stored in the
> folder /PRIVATE/AVCHD/BDMV/STREAM.
>
> Exhibited behavior: Shotwell only lists and downloads the jpg photoś
>
> This has worked all the way through the beta era. Just now after
> release I notice that it will not see my video's
>
> I have not done a clean install, but updated all the way from alpha
> release.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/990725/+subscriptions
>

--
public struct Box {
    public static const int HAND_GRENADES = 12;
-- from shotwell/src/Box.vala