File file_import.patch of Package f-spot
From 0e9b049db8d52626b37a74550220692b42454cb6 Mon Sep 17 00:00:00 2001
From: sdelcroix <sdelcroix@772769d8-d925-0410-89eb-a6ffa0d40526>
Date: Tue, 4 Nov 2008 16:45:30 +0000
Subject: [PATCH] patch from Martin Pitt for f-spot-import
git-svn-id: svn+ssh://svn.gnome.org/svn/f-spot/branches/FSPOT_0_5_0_STABLE@4569 772769d8-d925-0410-89eb-a6ffa0d40526
---
tools/f-spot-import | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/tools/f-spot-import b/tools/f-spot-import
index da4e81b..a7feb03 100755
--- a/tools/f-spot-import
+++ b/tools/f-spot-import
@@ -4,10 +4,16 @@ udi="$1"
#xmessage $udi
if [ "$udi" != "${udi#gphoto2:}" ]; then
- # gphoto2, as passed by nautilus.
+ # gphoto2, as passed by gvfs/nautilus
f-spot --import "$udi"
exit
fi
+mnt=${udi#file://}
+if [ "$udi" != "$mnt" ]; then
+ # mount point, as passed by gvfs/nautilus.
+ f-spot --import "$mnt"
+ exit
+fi
mount_point=`hal-get-property --udi="$udi" --key=volume.mount_point` || true
if [ -n "$mount_point" ]; then
# USB Mass Storage camera: need to pass f-spot a mount point
--
1.6.0.2