Summary: | Solid doesn't automatically detect digital camera | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Bobby <bobby.culture> |
Component: | Import-Gphoto2 | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | darktears31, kde, marcel.wiesweg |
Priority: | NOR | ||
Version: | 0.10.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Bobby
2008-12-22 09:47:59 UTC
This one is probably more for Digikam which is supposed to register itself to the device notifier. I'm adding Alexis in CC who could help if the Digikam people don't know how to do that. Question : How to add digiKam is list of application to open with USB device. For KDE3, digiKam add an action at the right place using customized desktop files: http://websvn.kde.org/branches/extragear/kde3/graphics/digikam/utilities/hotplug/ How we can do the same with KDE4 ? Gilles Caulier What we do of course is connect(Solid::DeviceNotifier::instance(), SIGNAL(deviceAdded(const QString&)), this, SLOT(slotSolidDeviceChanged(const QString &))); so if a device is plugged in it will appear in our menus. Is this the device notifier Kevin speaks about? I guess the original report is more about the pop up window that we know from KDE3 where a list of actions is displayed. When I was in contact with the Solid people, long ago in the early days of KDE4, such a functionality was not available. I now understood that Kevin is speaking about the Device Notifier Plasma applet. I did not manage to find any official documentation, but scattered bits describing what should be done: http://apachelog.blogspot.com/2008/08/dragons-dvds-and-new-device-notifiers.html bug #165544 SVN commit 903474 by mwiesweg: Prepare digikam to be able to open a camera gui on a given Solid Device UDI. - move code to open a usb device and a gphoto2 camera by UDI to separate methods - add a method that accepts a UDI and determines which of the two above methods to call - move code to check and create a label for gphoto2 cameras to separate methods - use queued signals instead of single shot timers to call methods from command line paramters CCBUG: 178435 M +141 -63 digikamapp.cpp M +12 -1 digikamapp.h M +0 -2 digikamappprivate.h WebSVN link: http://websvn.kde.org/?view=rev&revision=903474 SVN commit 903475 by mwiesweg: Add downloadFromUdi DBUS method CCBUG: 178435 M +7 -3 org.kde.digikam.xml WebSVN link: http://websvn.kde.org/?view=rev&revision=903475 SVN commit 903476 by mwiesweg: - Add --download-from-udi command line option. - the old --album-root option is now --database-directory CCBUG: 178435 M +13 -10 main.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=903476 SVN commit 903520 by mwiesweg: Port digikam-camera utility to qdbus CCBUG: 178435 M +18 -11 digikam-camera WebSVN link: http://websvn.kde.org/?view=rev&revision=903520 SVN commit 903521 by mwiesweg: Add a desktop file intended for the Plasma Device Notifier applet. May need some testing. CCBUG: 178435 A digikam-opencamera.desktop.cmake WebSVN link: http://websvn.kde.org/?view=rev&revision=903521 SVN commit 903578 by mwiesweg: Install the .desktop file to the right place (apps/solid/actions) CCBUG: 178435 M +1 -0 CMakeLists.txt WebSVN link: http://websvn.kde.org/?view=rev&revision=903578 This has been quite a lot of work, mostly due to lack of documentation and the need to look at the code to get to know how we are supposed to do things, but it works for me now. The Device Notifier Plasma applet will show "2 actions for device", and will popup a dialog where digikam can be chosen. The device is specified by UDI and digikam will detect what to do with this. I did not test this with a gphoto2 camera, so if you have such a device please give it a try. The load-with-digikam action will be offered for all USB storage devices as I do not know how to distinguish USB mass storage cameras from USB sticks or USB hard disks. In fact I think these are technically the same, and the only thing we could do is use a white list with manufacturers' names. In digikam's menus we offer all USB mass storage devices as well. Any comments or ideas are welcome. There is a little pb with this, Audio cds are detected by it and ask if i want to open them with digikam SVN commit 912060 by mwiesweg: Solid Predicate for Plasma Device Notifier: Filter by usageType as well. Prevents detection of Audio CDs. CCBUG: 178435 M +1 -1 digikam-opencamera.desktop.cmake WebSVN link: http://websvn.kde.org/?view=rev&revision=912060 |