https://bugs.kde.org/show_bug.cgi?id=399115
Bug ID: 399115 Summary: kdeconnect-cli file sharing always sends the first specified file as a URL Product: kdeconnect Version: unspecified Platform: openSUSE RPMs OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: common Assignee: albertv...@gmail.com Reporter: gsheridansm...@posteo.uk Target Milestone: --- Created attachment 115253 --> https://bugs.kde.org/attachment.cgi?id=115253&action=edit Demonstrating same file sent twice results in file actually being sent SUMMARY When sharing a file via kdeconnect-cli, the first file specified is always sent as a URL. If the file is specified twice, it will be sent first as a URL, then as a file. STEPS TO REPRODUCE 1. Attempt to share a file: "kdeconnect-cli -d $DEVICE --share test" 2. File is sent as a URL. i.e. http://test 3. Attempt to share the same file, specifying it twice: "kdeconnect-cli -d $DEVICE --share test test 4. File is sent first as a URL, then as a file. i.e. http://test file://test OBSERVED RESULT File is sent as a URL EXPECTED RESULT File is sent as a file SOFTWARE VERSIONS (available in About System) KDE Plasma Version: 5.13.5 KDE Frameworks Version: 5.49.0 Qt Version: 5.11.1 ADDITIONAL INFORMATION The source code shows the program always sends file arguments passed to the "share" option as a URL first, then additional file arguments are checked for being files. Bug is at lines 149 - 163 of kdeconnect-kde/cli/kdeconnect-cli.cpp Check for whether arg is a local file should be always performed, not just if there's more than one file. -- You are receiving this mail because: You are watching all bug changes.