/usr/bin/f-spot-import is in f-spot 0.8.2-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/bin/bash -x
udi="$1"
#xmessage $udi
if [ "$udi" != "${udi#gphoto2:}" ]; then
# gphoto2, as passed by gvfs/nautilus
gvfs-mount -u "$udi" || true
f-spot --import "$udi"
exit
fi
mnt=${udi#file://}
if [ "$udi" != "$mnt" ]; then
# mount point, as passed by gvfs/nautilus.
f-spot --import "$udi"
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
f-spot --import "$mount_point"
else
# Some other camera try GPhoto2
bus=`hal-get-property --udi="$udi" --key=usb.bus_number`
dev=`hal-get-property --udi="$udi" --key=usb.linux.device_number`
uri=`printf gphoto2://[usb:%.3d,%.3d] $bus $dev`
f-spot --import "$uri"
fi
|