Failed to send .mp4 video file from PC to phone.
Execute mconnectctl share-file /org/mconnect/device/0 /tmp/download/八段锦.mp4
Got this error:
** (mconnectctl:13429): CRITICAL **: 11:35:54.691: file ../src/mconnectctl/main.vala: line 79: unexpected error: Invalid byte sequence in conversion input (g_convert_error, 1)
Change the filename to 7.mp4, and the transfer finished successfully but I can't find the video file in the phone. The last messages of mconnect -d is:
** (mconnect:12259): DEBUG: 11:28:30.475: transfer-upload.vala:115: progress: 38.3 MB/38.3 MB 99% ** (mconnect:12259): DEBUG: 11:28:30.476: transfer-upload.vala:115: progress: 38.3 MB/38.3 MB 100% ** (mconnect:12259): DEBUG: 11:28:30.476: io-job.vala:64: transfer done, got 38.3 MB bytes ** INFO: 11:28:30.476: transfer-upload.vala:127: transfer finished ** (mconnect:12259): DEBUG: 11:28:30.476: transfer-upload.vala:130: transfer done, got 38.3 MB ** (mconnect:12259): DEBUG: 11:28:30.486: transfer-proxy.vala:45: unregister transfer at path /org/mconnect/transfer/0
So,
- Hope mconnectctl can support Unicode filenames with multi-byte characters.
- Why failed to save video file to phone? Is it a problem of kde-connect app?
--- a/src/mconnectctl/main.vala
+++ b/src/mconnectctl/main.vala
@@ -59,6 +59,8 @@ namespace Mconnect {
private delegate int CommandFunc (string[] args);
public static int main (string[] args) {
+ Intl.setlocale(LocaleCategory.ALL, "");
+
try {
var opt_context = new OptionContext ();
opt_context.set_description (
This issue describes a problem when sending bigger files (file does not appear on the phone) this can be solved with https://github.com/grimpy/mconnect/commit/0b51ff34c45930ec4c154b9185fe27dabac336d8