Bug 448088 - Button "Properties | General | Explore in Filelight" does not work on MTP devices
Summary: Button "Properties | General | Explore in Filelight" does not work on MTP dev...
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 21.12.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-07 20:58 UTC by Gerhard
Modified: 2022-01-07 21:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.12.2
Sentry Crash Report:


Attachments
Error message after pressing "Explore in Filelight" (124.22 KB, image/png)
2022-01-07 20:58 UTC, Gerhard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard 2022-01-07 20:58:24 UTC
Created attachment 145206 [details]
Error message after pressing "Explore in Filelight"

If you right click on a folder in Dolphin, you can choose the "Properties" menu. In the tab "General", there is a button "Explore in Filelight" which normally opens Filelight which displays a graphical statistics about the directory's content.

If you try to do the same with a folder of an MTP device like an Android phone, this function fails with an error message popping up that the folder could not be read.

Note that it is possible to open the folder of the MTP device from within Filelight directly, so this is why I think Dolphin is to blame here.

STEPS TO REPRODUCE
1. Plug in an Android phone by USB, choose the USB setting "Files" on the phone
2. Browse into the phone's file system with Dolphin, right click on any folder and press the button "Explore in Filelight"

OBSERVED RESULT
An error message pops up, see screenshot

EXPECTED RESULT
Filelight should be opened and show a statistics of the folder

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE Tumbleweed 20220106
KDE Plasma Version:  5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Comment 1 Nicolas Fella 2022-01-07 21:42:06 UTC
Git commit f94a6f7fb1de8612d6d9f5134b586997385b8120 by Nicolas Fella.
Committed on 07/01/2022 at 21:38.
Pushed by nicolasfella into branch 'release/21.12'.

Announce that we accept urls, not just files in the desktop file

Filelight can handle any KIO urls. However we claim that we can only handle file paths in the desktop file, which results in kioexec being triggered when launching Filelight via KIO::ApplicationLauncherJob

Instead state that we can handle URLs so ApplicationLauncherJob knows that it can pass URLs right through

M  +1    -1    misc/org.kde.filelight.desktop

https://invent.kde.org/utilities/filelight/commit/f94a6f7fb1de8612d6d9f5134b586997385b8120