Bug 413477

Summary: "browse device" opens a text file
Product: [Applications] kdeconnect Reporter: Jonathan <i501ed+cn6smcaeh3n2g>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED FIXED    
Severity: normal CC: nicolas.fella
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jonathan 2019-10-26 14:10:48 UTC
SUMMARY

I have my device connected and it works except when I click "browse device" it opens a file in Gedit named something like ~/.cache/kioexec/krun/12345_0/unnamed. The "12345" can be any four or five digit number. The file is zero bytes. It is owned by the user I'm logged in as. The MIME type is text/plain. "ls -al" give the permissions -rw-r--r--.

I'm running XFCE on Debian.

My computer does have Dolphin browser but I do not know how to tell KDE Connect to use it.

My mom is running Xubuntu and her computer opens Angrysearch when trying to browse her phone.

"Send file" does work correctly.

STEPS TO REPRODUCE
1. Successfully pair Debian with XFCE PC to Android phone
2. Click browse device in the KDE indicator in the notifications area

OBSERVED RESULT
It opens a text file named something like ~/.cache/kioexec/krun/12345_0/unnamed

EXPECTED RESULT
It opens a file manager which can browse the phone's file system.

SOFTWARE/OS VERSIONS
OS: Debian GNU/Linux bullseye/sid x86_64
Kernel: 5.2.0-3-amd64
Shell: zsh 5.7.1
desktop: Xfce 
window manager: Xfwm4 

ADDITIONAL INFORMATION
My mom has a similar problem on Xubuntu.
Comment 1 Nicolas Fella 2020-08-29 13:48:48 UTC
I can confirm this. It's a regression in KIO caused by https://phabricator.kde.org/D29782

I will report it to the relevant people
Comment 2 Nicolas Fella 2020-08-29 15:05:17 UTC
KIO bugreport: https://bugs.kde.org/show_bug.cgi?id=425948
Comment 3 Nicolas Fella 2020-08-30 21:46:45 UTC
Git commit 60a1adf2295d21d87fabed9c4d45cb70b6ad903e by Nicolas Fella.
Committed on 30/08/2020 at 21:45.
Pushed by nicolasfella into branch 'master'.

[kio] Mark Class as local

This is needed for kioexec to work properly since we forward to a local file system
Related: bug 425948

M  +17   -17   kio/kdeconnect.json

https://invent.kde.org/network/kdeconnect-kde/commit/60a1adf2295d21d87fabed9c4d45cb70b6ad903e
Comment 4 Nicolas Fella 2020-08-30 21:47:57 UTC
Git commit 56d40292470bb25253405b99d94792b72436a4d7 by Nicolas Fella.
Committed on 30/08/2020 at 21:47.
Pushed by nicolasfella into branch 'release/20.08'.

[kio] Mark Class as local

This is needed for kioexec to work properly since we forward to a local file system
Related: bug 425948
(cherry picked from commit 60a1adf2295d21d87fabed9c4d45cb70b6ad903e)

M  +17   -17   kio/kdeconnect.json

https://invent.kde.org/network/kdeconnect-kde/commit/56d40292470bb25253405b99d94792b72436a4d7