f-spot r4569 - branches/FSPOT_0_5_0_STABLE/tools



Author: sdelcroix
Date: Tue Nov  4 16:45:30 2008
New Revision: 4569
URL: http://svn.gnome.org/viewvc/f-spot?rev=4569&view=rev

Log:
patch from Martin Pitt for f-spot-import

Modified:
   branches/FSPOT_0_5_0_STABLE/tools/f-spot-import

Modified: branches/FSPOT_0_5_0_STABLE/tools/f-spot-import
==============================================================================
--- branches/FSPOT_0_5_0_STABLE/tools/f-spot-import	(original)
+++ branches/FSPOT_0_5_0_STABLE/tools/f-spot-import	Tue Nov  4 16:45:30 2008
@@ -4,10 +4,16 @@
 #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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]