Bug 446274

Summary: When device is in MTP or PTP mode, only show actions relevant to that mode
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: Disks & DevicesAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: nate, qydwhotmail
Priority: NOR Keywords: usability
Version: master   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=446420
Latest Commit: Version Fixed In:
Attachments: a. View Photos with file manager
b. Download Photos with Gwenview
c. Download Photos with DigiKam

Description Patrick Silva 2021-11-30 13:26:02 UTC
Created attachment 144080 [details]
a. View Photos with file manager

STEPS TO REPRODUCE
1. have Dolphin, Gwenview and DigiKam installed on your system
2. connect an Android phone to usb port
3. set usb mode of your Android device to 'File transfer (MTP)'
4. click on Disks & Devices applet in system tray
5. click on your Android device and choose any of these device actions:
  a. View Photos with file manager
  b. Download Photos with Gwenview
  c. Download Photos with DigiKam

OBSERVED RESULT
no option chosen in the last step works and I get error messages.
Please see the attached screenshots.

EXPECTED RESULT
If an Android device is mounted in MTP mode, Disks & Devices applet should not offer device actions that only work with PTP mode

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.3
Graphics Platform: X11
Comment 1 Patrick Silva 2021-11-30 13:27:18 UTC
Created attachment 144081 [details]
b. Download Photos with Gwenview
Comment 2 Patrick Silva 2021-11-30 13:27:59 UTC
Created attachment 144082 [details]
c. Download Photos with DigiKam
Comment 3 Nate Graham 2023-04-28 03:25:37 UTC
Actions not relevant in PTP mode:
- Mount
- Open in File Manager

Actions not relevant in MTP mode:
- Download Photos with Gwenview
- Download Photos with Digikam
- View Photos with file manager

When in PTP mode, we can probably filter out Mount and Open in File Manager in the applet code. But when in MTP mode, I suspect to filter out those actions, we'll need to make changes to the device action files that come from the apps themselves. They live in Gwenview, Digikam, and Kamera, respectively.