Bug 423975 - File sharing does not work from GUI on Xfce (but works from kdeconnect-cli)
Summary: File sharing does not work from GUI on Xfce (but works from kdeconnect-cli)
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-07 18:31 UTC by omgoybkzylaarqhhmj
Modified: 2020-07-18 21:58 UTC (History)
3 users (show)

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


Attachments
command-line output of kdeconnect-app (5.46 KB, text/plain)
2020-07-07 18:31 UTC, omgoybkzylaarqhhmj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description omgoybkzylaarqhhmj 2020-07-07 18:31:42 UTC
Created attachment 129963 [details]
command-line output of kdeconnect-app

SUMMARY

File sharing using the "Share file" button in the GUI (kdeconnect-app) does not work, i.e. it fails silently.

Meanwhile, using kdeconnect-cli -d your_device_id --share /path/to/file works. Sharing files from Android app to PC works.


STEPS TO REPRODUCE
1. Pair a device (Android 9.0 tablet in my case)
2. Click "Share file", choose a file

OBSERVED RESULT
File is not transferred, nor is any relevant error reported on the command-line output (full output attached in case anyway)

EXPECTED RESULT
File should be transferred as it is with kdeconnect-cli, which transfers the file and gives me a notification on my Android device.

SOFTWARE/OS VERSIONS
DE is Xfce, I only installed KDE Connect.
All packages are latest from Arch Linux repositories.
Comment 1 Serhiy Zahoriya 2020-07-08 16:58:26 UTC
May be related to kuiserver DBus service being unavailable without Plasma running https://askubuntu.com/q/1251090/20275
Comment 2 Nicolas Fella 2020-07-08 17:02:06 UTC
It has nothing to do with kuiserver. I know what's wrong and it should be easy to fix
Comment 3 Nicolas Fella 2020-07-08 17:18:17 UTC
By the way, the information in the askubuntu answer is wrong. I left a new answer, but for some reason I'm not able to comment on the original one.
Comment 4 Bug Janitor Service 2020-07-08 18:14:09 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/289
Comment 5 Nicolas Fella 2020-07-18 21:57:36 UTC
Git commit 198789e6fcd7eee2a8c29643c16f67055421b9ee by Nicolas Fella.
Committed on 18/07/2020 at 21:57.
Pushed by nicolasfella into branch 'master'.

Fix file dialog usage in app and plasmoid

fileDialog.open() does *not* block, so we need to move the sending to onAccepted. Not sure why I thought this ever worked.

M  +3    -5    app/qml/DevicePage.qml
M  +2    -6    plasmoid/package/contents/ui/DeviceDelegate.qml

https://invent.kde.org/network/kdeconnect-kde/commit/198789e6fcd7eee2a8c29643c16f67055421b9ee
Comment 6 Nicolas Fella 2020-07-18 21:58:37 UTC
Git commit 6cd0a92ca207d5163839fb03e2d9e33a7382ff39 by Nicolas Fella.
Committed on 18/07/2020 at 21:59.
Pushed by nicolasfella into branch 'release/20.08'.

Fix file dialog usage in app and plasmoid

fileDialog.open() does *not* block, so we need to move the sending to onAccepted. Not sure why I thought this ever worked.
(cherry picked from commit 198789e6fcd7eee2a8c29643c16f67055421b9ee)

M  +3    -5    app/qml/DevicePage.qml
M  +2    -6    plasmoid/package/contents/ui/DeviceDelegate.qml

https://invent.kde.org/network/kdeconnect-kde/commit/6cd0a92ca207d5163839fb03e2d9e33a7382ff39