Bug 362976 - "Open with File Manager" shown twice when connecting phone or tablet over USB
Summary: "Open with File Manager" shown twice when connecting phone or tablet over USB
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Disks & Devices (show other bugs)
Version: 5.5.5
Platform: Kubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL: https://ipfs.pics/ipfs/QmX3gUpf5MHXGD...
Keywords:
: 339276 402669 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-05-12 09:50 UTC by lehmax
Modified: 2020-11-25 00:05 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.20


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lehmax 2016-05-12 09:50:45 UTC
Take a look at the picture for more details.

When connecting my phone to the computer I get the above message from device notifier.
The first one opens the device (my phone) using mtp.

The second one gives me the following error: https://ipfs.pics/ipfs/Qme9wHfX4jpL8nVbnFDsbMa8v2YRXYikQbBrGAbMqUaVs8

Reproducible: Always
Comment 1 Sudhir Khanger 2016-05-12 17:58:36 UTC
I am able to reproduce it.
Comment 2 Kai Uwe Broulik 2016-05-12 18:13:16 UTC
Confirmed. It looks like two completely separate actions, though, in German they show different labels, so perhaps it's one coming from 4.x and one from 5.x?
Comment 3 lehmax 2016-05-12 18:18:51 UTC
I should probably mention that I get the same error message when trying to connect my phone using PTP.
Comment 4 Alexander Mentyu 2017-12-10 17:14:21 UTC
The link for the picture isn't working, seems related to https://bugs.kde.org/show_bug.cgi?id=339276
Comment 5 Peter Tselios 2017-12-18 19:06:48 UTC
I have the same problem as the OP, but in my case MTP & Camera work correctly.
So, when I connect my Android phone or tablet via USB, I get a known message about the Portable Media Player. 

Now, the 2 issues:
1. The Actions shown are for 2 different protocols (camera:/ and mtp:/), but the action title is the same. I understand that this is probably an issue related with the relevant kio, but still we need to have a better description. At the very least, please write the relevant kio that will be used. 

2. The Title. I understand that the MTP is created for usage by Media Players. But, when we connect an Android Phone, probably it would be better to change the title to Android Phone, instead of the current one.
Comment 6 Alexander Mentyu 2018-01-26 18:49:37 UTC
As a workaround - you can edit your Device Notifier actions in System Settings -> Removable Storage section
Comment 7 skierpage 2019-01-14 00:12:34 UTC
I marked bug 39276 and bug 402669 as duplicates of this. Both have good comments.

The most excellent Nate Graham touched on dedoimedo's mention of this bug in https://pointieststick.com/2018/02/16/plasma-5-perfection-call-for-development/ , but mistakenly dismissed it as "Not a bug; the mount protocol is (or should be) irrelevant to a normal user." But unless KDE is going to intelligently pick one protocol over the other (I think MS Windows prefers MTP over PTP/camera when you open in Windows Explorer), then KDE *has* to disambiguate the two protocols' Actions. One is access to all media files on the device, the other is just camera files. Maybe the gory details of MTP and PTP could be in a tooltip.
Comment 8 skierpage 2019-01-14 00:13:09 UTC
*** Bug 339276 has been marked as a duplicate of this bug. ***
Comment 9 skierpage 2019-01-14 00:13:42 UTC
*** Bug 402669 has been marked as a duplicate of this bug. ***
Comment 10 skierpage 2019-01-14 02:37:10 UTC
(In reply to skierpage from comment #7)
> ... then KDE *has* to
> disambiguate the two protocols' Actions. One is access to all media files on
> the device, the other is just camera files. Maybe the gory details of MTP
> and PTP could be in a tooltip.
I chose the Open with File Manager corresponding to camera and the location opened was 
camera:/Google%2520Inc%2520Nexus%252FPixel%2520(MTP)@usb:002,009/store_00010001/
Note "MTP" in the name. So I was mistaken, it seems the camera KIO does not necessarily use the PTP protocol. With Android 9 you can control the protocol used in the *phone*'s USB Preferences > Use USB for... setting.

(In reply to Alexander Mentyu from comment #6)
> As a workaround - you can edit your Device Notifier actions in System
> Settings -> Removable Storage section
That didn't work for me. I open Device Actions, click the Open with File Manager - Camera action, click Edit..., change only the action name to Open camera with File Manager, click OK. The result in Fedora 29 KDE spin with KDE Plasma 5.14.4 and KDE Frameworks 5.53.0 is the action is no longer presented when I plug in my phone. I think the problem is changing the name only creates a two-line file in ~/.local/share/solid/actions/solid_camera.desktop containing
  [Desktop Action open]
  Name=Open camera with File Manager

I think it needs an action line and other information from the original /usr/share/solid/actions/solid_camera.desktop to work. I don't know if this is  a bug.
Comment 11 skierpage 2019-01-14 02:55:33 UTC
Sorry for all the spam

(In reply to skierpage from comment #10)
> (In reply to Alexander Mentyu from comment #6)
> > As a workaround - you can edit your Device Notifier actions in System
> > Settings -> Removable Storage section
> That didn't work for me. ... change only the action name to Open
> camera with File Manager, ... the action is no longer
> presented when I plug in my phone.
That's probably bug 387961. It would be nice to have a reliable workaround.
Comment 12 Nate Graham 2020-11-25 00:05:05 UTC
This has been fixed in the UI redesign in Plasma 5.20.