diff options
Diffstat (limited to 'src/utilities/hotplug')
-rw-r--r-- | src/utilities/hotplug/Makefile.am | 7 | ||||
-rw-r--r-- | src/utilities/hotplug/configure.in.in | 7 | ||||
-rwxr-xr-x | src/utilities/hotplug/digikam-camera | 40 | ||||
-rw-r--r-- | src/utilities/hotplug/digikam-download.desktop.in | 27 | ||||
-rw-r--r-- | src/utilities/hotplug/digikam-gphoto2-camera.desktop.in | 27 | ||||
-rw-r--r-- | src/utilities/hotplug/digikam-mount-and-download.desktop.in | 27 |
6 files changed, 135 insertions, 0 deletions
diff --git a/src/utilities/hotplug/Makefile.am b/src/utilities/hotplug/Makefile.am new file mode 100644 index 00000000..b0b9e23a --- /dev/null +++ b/src/utilities/hotplug/Makefile.am @@ -0,0 +1,7 @@ +konqservicemenudir = $(kde_datadir)/konqueror/servicemenus +konqservicemenu_DATA = digikam-download.desktop digikam-gphoto2-camera.desktop digikam-mount-and-download.desktop + +helperdir = $(digikamhelper_dir) +helper_SCRIPTS = digikam-camera + +#EXTRA_DIST = $(servicemenu_DATA) $(helper_SCRIPTS) diff --git a/src/utilities/hotplug/configure.in.in b/src/utilities/hotplug/configure.in.in new file mode 100644 index 00000000..b36be1e8 --- /dev/null +++ b/src/utilities/hotplug/configure.in.in @@ -0,0 +1,7 @@ +KDE_EXPAND_MAKEVAR(digikamhelper_dir, kde_datadir/digikam/utils) +AC_SUBST(digikamhelper_dir) + +AC_OUTPUT(src/utilities/hotplug/digikam-download.desktop) +AC_OUTPUT(src/utilities/hotplug/digikam-gphoto2-camera.desktop) +AC_OUTPUT(src/utilities/hotplug/digikam-mount-and-download.desktop) + 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 diff --git a/src/utilities/hotplug/digikam-download.desktop.in b/src/utilities/hotplug/digikam-download.desktop.in new file mode 100644 index 00000000..55a29fdb --- /dev/null +++ b/src/utilities/hotplug/digikam-download.desktop.in @@ -0,0 +1,27 @@ +[Desktop Action digiKam Download] +Exec=@digikamhelper_dir@/digikam-camera storage %u +Icon=digikam +Name=Download Photos with digiKam +Name[ca]=Descàrrega de fotos amb el digiKam +Name[de]=Fotos mit digiKam herunterladen +Name[es]=Descargar fotos con digiKam +Name[et]=Fotode allalaadimine digiKamiga +Name[fi]=Lataa valokuvat digiKamilla +Name[fr]=Télécharger les photos avec digiKam +Name[is]=Hala niður myndum með digiKam +Name[it]=Scarica foto con digiKam +Name[ja]=digiKam で写真をダウンロード +Name[nds]=Fotos mit digiKam daalladen +Name[nl]=Foto's downloaden met digiKam +Name[pl]=Pobierz zdjęcia programem digiKam +Name[pt]=Obter Fotografias com o digiKam +Name[pt_BR]=Obter Fotografias com o digiKam +Name[sk]=Stiahnuť fotky pomocou digiKam +Name[sr]=Преузми слике помоћу digiKam-а +Name[sr@Latn]=Преузми слике помоћу digiKam-а +Name[sv]=Ladda ner foton med Digikam +Name[xx]=xxDownload Photos with digiKamxx + +[Desktop Entry] +Actions=digiKam Download +X-TDE-ServiceTypes=media/removable_mounted,media/camera_mounted diff --git a/src/utilities/hotplug/digikam-gphoto2-camera.desktop.in b/src/utilities/hotplug/digikam-gphoto2-camera.desktop.in new file mode 100644 index 00000000..f2c4a42a --- /dev/null +++ b/src/utilities/hotplug/digikam-gphoto2-camera.desktop.in @@ -0,0 +1,27 @@ +[Desktop Action digiKam Detect and Download] +Exec=@digikamhelper_dir@/digikam-camera detect %u +Icon=digikam +Name=digiKam Detect and Download +Name[ca]=Detecta i descarrega amb el digiKam +Name[de]=Finden und Herunterladen mit digiKam +Name[es]=Detectar y descargar con digiKam +Name[et]=*Fotode tuvastamine ja allalaadimine digiKamiga +Name[fi]=Tunnista kamera ja lataa kuvat digiKamilla +Name[fr]=Détecter et télécharger avec digiKam +Name[is]=digiKam Finna og Niðurhala +Name[it]=Rileva e scarica con digiKam +Name[ja]=digiKam 検出とダウンロード +Name[nds]=digiKam - Opdecken un daalladen +Name[nl]=digiKam-detectie en download +Name[pl]=Wykrycie i pobieranie digiKamem +Name[pt]=Detectar e Transferir com o digiKam +Name[pt_BR]=Detectar e Transferir com o digiKam +Name[sk]=digiKam Nájsť a stiahnuť +Name[sr]=digiKam-ово Препознај и преузми +Name[sr@Latn]=digiKam-ово Препознај и преузми +Name[sv]=Digikam detektering och nerladdning +Name[xx]=xxdigiKam Detect and Downloadxx + +[Desktop Entry] +Actions=digiKam Detect and Download +X-TDE-ServiceTypes=media/gphoto2camera diff --git a/src/utilities/hotplug/digikam-mount-and-download.desktop.in b/src/utilities/hotplug/digikam-mount-and-download.desktop.in new file mode 100644 index 00000000..2b773a15 --- /dev/null +++ b/src/utilities/hotplug/digikam-mount-and-download.desktop.in @@ -0,0 +1,27 @@ +[Desktop Action digiKam Mount and Download] +Exec=@digikamhelper_dir@/digikam-camera storage %u +Icon=digikam +Name=Download Photos with digiKam +Name[ca]=Descàrrega de fotos amb el digiKam +Name[de]=Fotos mit digiKam herunterladen +Name[es]=Descargar fotos con digiKam +Name[et]=Fotode allalaadimine digiKamiga +Name[fi]=Lataa valokuvat digiKamilla +Name[fr]=Télécharger les photos avec digiKam +Name[is]=Hala niður myndum með digiKam +Name[it]=Scarica foto con digiKam +Name[ja]=digiKam で写真をダウンロード +Name[nds]=Fotos mit digiKam daalladen +Name[nl]=Foto's downloaden met digiKam +Name[pl]=Pobierz zdjęcia programem digiKam +Name[pt]=Obter Fotografias com o digiKam +Name[pt_BR]=Obter Fotografias com o digiKam +Name[sk]=Stiahnuť fotky pomocou digiKam +Name[sr]=Преузми слике помоћу digiKam-а +Name[sr@Latn]=Преузми слике помоћу digiKam-а +Name[sv]=Ladda ner foton med Digikam +Name[xx]=xxDownload Photos with digiKamxx + +[Desktop Entry] +Actions=digiKam Mount and Download +X-TDE-ServiceTypes=media/removable_unmounted,media/camera_unmounted |