diff options
Diffstat (limited to 'digikam/utilities/hotplug')
-rw-r--r-- | digikam/utilities/hotplug/Makefile.am | 7 | ||||
-rw-r--r-- | digikam/utilities/hotplug/configure.in.in | 7 | ||||
-rwxr-xr-x | digikam/utilities/hotplug/digikam-camera | 40 | ||||
-rw-r--r-- | digikam/utilities/hotplug/digikam-download.desktop.in | 27 | ||||
-rw-r--r-- | digikam/utilities/hotplug/digikam-gphoto2-camera.desktop.in | 27 | ||||
-rw-r--r-- | digikam/utilities/hotplug/digikam-mount-and-download.desktop.in | 27 |
6 files changed, 135 insertions, 0 deletions
diff --git a/digikam/utilities/hotplug/Makefile.am b/digikam/utilities/hotplug/Makefile.am new file mode 100644 index 00000000..b0b9e23a --- /dev/null +++ b/digikam/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/digikam/utilities/hotplug/configure.in.in b/digikam/utilities/hotplug/configure.in.in new file mode 100644 index 00000000..94133f75 --- /dev/null +++ b/digikam/utilities/hotplug/configure.in.in @@ -0,0 +1,7 @@ +KDE_EXPAND_MAKEVAR(digikamhelper_dir, kde_datadir/digikam/utils) +AC_SUBST(digikamhelper_dir) + +AC_OUTPUT(digikam/utilities/hotplug/digikam-download.desktop) +AC_OUTPUT(digikam/utilities/hotplug/digikam-gphoto2-camera.desktop) +AC_OUTPUT(digikam/utilities/hotplug/digikam-mount-and-download.desktop) + diff --git a/digikam/utilities/hotplug/digikam-camera b/digikam/utilities/hotplug/digikam-camera new file mode 100755 index 00000000..10b2fe3f --- /dev/null +++ b/digikam/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/digikam/utilities/hotplug/digikam-download.desktop.in b/digikam/utilities/hotplug/digikam-download.desktop.in new file mode 100644 index 00000000..81cb8734 --- /dev/null +++ b/digikam/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 +ServiceTypes=media/removable_mounted,media/camera_mounted diff --git a/digikam/utilities/hotplug/digikam-gphoto2-camera.desktop.in b/digikam/utilities/hotplug/digikam-gphoto2-camera.desktop.in new file mode 100644 index 00000000..d3ea1db2 --- /dev/null +++ b/digikam/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 +ServiceTypes=media/gphoto2camera diff --git a/digikam/utilities/hotplug/digikam-mount-and-download.desktop.in b/digikam/utilities/hotplug/digikam-mount-and-download.desktop.in new file mode 100644 index 00000000..5f354bfc --- /dev/null +++ b/digikam/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 +ServiceTypes=media/removable_unmounted,media/camera_unmounted |