[Digikam-devel] [Bug 117248] Opening default app when camera inserted return KIOExec error

Gilles Caulier caulier.gilles at kdemail.net
Wed Dec 13 06:51:02 GMT 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=117248         
caulier.gilles kdemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From caulier.gilles kdemail net  2006-12-13 07:51 -------
SVN commit 613015 by cgilles:

digikam from trunk : patch from ismail donmez (cartman) to fix hotplug digiKam script : digikam-gphoto2-camera.desktop has no %u in Exec line hence KDE tries to download with kioexec, solution is to add %u there and ignore extra argument for detect case in digikam-camera.

BUG: 117248
CCMAIL: ismail kde org

 M  +12 -3     digikam-camera  
 M  +1 -1      digikam-gphoto2-camera.desktop.in  


--- trunk/extragear/graphics/digikam/utilities/hotplug/digikam-camera #613014:613015
 @ -10,6 +10,7  @
 storage)
 	cmdoption=--download-from
 	dcopcall=downloadFrom
+    args="$ "
 	;;
 *)
 	echo "${0##*/}: wrong action.  Usage"
 @ -23,9 +24,17  @
 	case "$app" in
 	    digikam-*)
 		echo "recycling running $app: $dcopcall $ "
-		exec dcop "$app" camera  "$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 $ "
-exec digikam  "$cmdoption" "$ "
+echo "starting digikam with $cmdoption $args"
+if test -z "$args"; then
+    exec digikam  "$cmdoption"
+else
+    exec digikam  "$cmdoption" "$args"
+fi
--- trunk/extragear/graphics/digikam/utilities/hotplug/digikam-gphoto2-camera.desktop.in #613014:613015
 @ -1,5 +1,5  @
 [Desktop Action digiKam Detect and Download]
-Exec= digikamhelper_dir /digikam-camera detect
+Exec= digikamhelper_dir /digikam-camera detect %u
 Icon=digikam
 Name=digiKam Detect and Download



More information about the Digikam-devel mailing list