diff options
author | Michele Calgaro <[email protected]> | 2024-11-22 18:41:30 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-11-22 18:41:30 +0900 |
commit | ee0d99607c14cb63d3ebdb3a970b508949fa8219 (patch) | |
tree | 94ac1efedb94cb38bf6879ba0610fe75b554216b /src/utilities/hotplug/digikam-camera | |
parent | 4adff739380e4ae9f30e443ee95644f184456869 (diff) | |
download | digikam-ee0d99607c14cb63d3ebdb3a970b508949fa8219.tar.gz digikam-ee0d99607c14cb63d3ebdb3a970b508949fa8219.zip |
Rename 'digikam' folder to 'src'
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/utilities/hotplug/digikam-camera')
-rwxr-xr-x | src/utilities/hotplug/digikam-camera | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/utilities/hotplug/digikam-camera b/src/utilities/hotplug/digikam-camera new file mode 100755 index 00000000..10b2fe3f --- /dev/null +++ b/src/utilities/hotplug/digikam-camera @@ -0,0 +1,40 @@ +#!/bin/sh + +action="$1"; shift; + +case "$action" in +detect) + cmdoption=--detect-camera + dcopcall=detectCamera + ;; +storage) + cmdoption=--download-from + dcopcall=downloadFrom + args="$@" + ;; +*) + echo "${0##*/}: wrong action. Usage" + echo " ${0##*/} detect # for gphoto2 supported cameras" + echo " ${0##*/} storage <url> # for usbdisk or directries with images" + exit 1 + ;; +esac + +for app in `dcop`; do + case "$app" in + digikam-*) + echo "recycling running $app: $dcopcall $@" + if test -z "$args"; then + exec dcop "$app" camera "$dcopcall" + else + exec dcop "$app" camera "$dcopcall" "$args" + fi + ;; + esac +done; +echo "starting digikam with $cmdoption $args" +if test -z "$args"; then + exec digikam "$cmdoption" +else + exec digikam "$cmdoption" "$args" +fi |