Created attachment 107136 [details] Notification showing two camera devices when an iPhone 5 is plugged in Steps to reproduce: 1. Plug in an iOS device Expected results: - A system tray notification appears notifying the user about the presence of a new camera device Actual results: - A system tray notification appears notifying the user about the presence of TWO camera devices. See attached screenshot. Reproducibility: - Seems to affect all recent iOS versions (iOS 10.x+) and all iOS devices I had available (iPhone 5, iPad 2, iPad Air 2). Only able to test with Kubuntu 17.04. Additional information: - Both entries are completely identical and whichever one is opened first is fully functional.
Still happening with kio-extras 17.12.3. I wonder if this is actually in plasmashell?
I don't think so. Plasma is showing one device, and that device has two identically named actions. Can you go to /opt/kde5/share/solid and grep for "Open with File Manager" and see which actions are appearing.
$ (master) grep -ri "Name=Open with File Manager" /usr/share/solid/ /usr/share/solid/actions/test-predicate-openinwindow.desktop:Name=Open with File Manager /usr/share/solid/actions/solid_camera.desktop:Name=Open with File Manager /usr/share/solid/actions/solid_mtp.desktop:Name=Open with File Manager /usr/share/solid/actions/solid_audiocd.desktop:Name=Open with File Manager
I don't have the audiocd one..but it seems unlike that's the cause. Can you modify the name of all 4 of them and see which two are being invoked? My gut feeling is we need to modify test-predicate-openinwindow.desktop to ignore devices that also report themselves as cameras.
If you can provide the information requested in comment #4, please add it.
Oops sorry, I missed the last comment. Results of that test indicate that they are actually are two instances of solid_camera.desktop.
Another data point: the first time an affected device is plugged in, the Device Notifier shows two entries. After unplugging the device and then plugging it back in, only one entry is shown. However, accessing the device no longer works; navigating to camera:/Apple%2520iPhone%25205%2520(PTP%2520mode)@usb:001,017/ (or whatever the URL is) produces an empty directory and a Dolphin error message that says: "Could not read. Reason: Could not claim the USB device" It looks like there may actually be two processes spawned here, and after unplugging the device, one of them doesn't die and therefore blocks access at a later time.
>Results of that test indicate that they are actually are two instances of solid_camera.desktop. Under what paths? Please run dpkg -S on both
It's just two instances of /usr/share/solid/actions/solid_camera.desktop, which come from: $ dpkg -S /usr/share/solid/actions/solid_camera.desktop kamera: /usr/share/solid/actions/solid_camera.desktop Also, setting this to CONFIRMED because Kai told me he can reproduce it over chat this morning.
*** Bug 406294 has been marked as a duplicate of this bug. ***
Idea from duped bug 406294: show the protocol of each one after the text.
Two things seem to have a.desktop file that offers an item with this name: plasma-workspace/applets/devicenotifier/test-predicate-openinwindow.desktop (this one opens Dolphin with camera:/) kio-extras/mtp/solid_mtp.desktop (This one opens dolphin with mtp:/<device name>) Maybe the MTP one should be "Browse files" and the camera one should be "View photos"
Actually scratch that. test-predicate-openinwindow.desktop is a red herring; the other entry comes from solid_camera.desktop, which comes from Kamera.
Whoops, this isn't the same issue as Bug 406294 at all. Well, at least we can fix that one. :)
Just wondering, is this still the case?