Comment 7 for bug 351122

Revision history for this message
Andrew (at-macmillan) wrote :

I'm having the same behaviour in a fully updated Jaunty here as well. No matter what I select in Nautilus's Media settings, I must manually unmount the Digital Camera icon on my desktop before gthumb --import will be able to see the camera.

According to the /usr/share/applications/gthumb-import.desktop file, I see it includes this line:

Exec=sh -c 'gvfs-mount -u "%U"; exec gthumb --import-photos'

However, this does not work. For one thing, the %U parameter only expands to ~/.gvfs, which is not enough information for the gvfs-mount command to properly unmount the card so no unmount occurs.

To fix it, I changed that line to the following:

Exec=sh -c 'gvfs-mount -u ~/.gvfs/gphoto2*; exec gthumb --import-photos'

This gives the gvfs-mount all the information it needs to properly unmount the card before calling gthumb.

This works on my system. With the nautilus media settings to "Open gThumb Image Viewer", the gthumb import dialog box pops up when I plug in the camera and I can import the photos like expected. Perhaps somebody else can test this or see a better way to fix the issue.