Bug 513594 - kdeconnect-cli exits before file transfer is done
Summary: kdeconnect-cli exits before file transfer is done
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (other bugs)
Version First Reported In: 25.04.2
Platform: Debian stable Linux
: NOR wishlist
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-20 01:10 UTC by larscbakken
Modified: 2025-12-20 01:10 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description larscbakken 2025-12-20 01:10:48 UTC
SUMMARY

`kdeconnect-cli` exits before the file transfer is done. This makes it hard to use programmatically, since we can never reliably know when KDE Connect is finished transferring the file. Is it possible to add a simple `--wait` argument that makes the process wait until the file transfer is done before it returns?

STEPS TO REPRODUCE
Run `kdeconnect-cli -n "$deviceName" --share "./$filename"`, where `$filename` is a large file

OBSERVED RESULT
`kdeconnect-cli` returns near-instantly while the system notification UI indicates the file is still being sent.

EXPECTED RESULT
An argument to implement blocking behavior. In a script, if any logic after the `kdeconnect-cli` invocation relies on the file transfer being finished, it will fail.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 13
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.12.57+deb13-amd64 (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: AMD Radeon RX 580 Series