Bug 513594

Summary: kdeconnect-cli exits before file transfer is done
Product: [Applications] kdeconnect Reporter: larscbakken
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: wishlist CC: andrew.g.r.holmes
Priority: NOR    
Version First Reported In: 25.04.2   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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