/usr/share/digikam/utils/digikam-camera is in digikam-data 4:5.6.0-0ubuntu10.
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | #!/bin/sh
action="$1"; shift;
case "$action" in
downloadFrom)
cmdoption=--download-from
dcopcall=org.kde.digikam.downloadFrom
args="$@"
;;
downloadFromUdi)
cmdoption=--download-from-udi
dcopcall=org.kde.digikam.downloadFromUdi
args="$@"
;;
detectCamera)
cmdoption=--detect-camera
dcopcall=detectCamera
;;
*)
echo "${0##*/}: wrong action. Usage"
echo " ${0##*/} downloadFrom <path> # for directories with images"
echo " ${0##*/} downloadFromUdi <udi> # for devices with images"
echo " ${0##*/} detect # for gphoto2 supported cameras"
exit 1
;;
esac
for app in `qdbus`; do
case "$app" in
org.kde.digikam-*)
echo "recycling running $app: $dcopcall $@"
if test -z "$args"; then
exec qdbus "$app" "/Digikam" "$dcopcall"
else
exec qdbus "$app" "/Digikam" "$dcopcall" "$args"
fi
break
;;
esac
done;
echo "starting digikam with $cmdoption $args"
if test -z "$args"; then
exec digikam "$cmdoption"
else
exec digikam "$cmdoption" "$args"
fi
|