INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Sync to Android Device fails with MC 30/31 Linux  (Read 1251 times)

HeinrichO

  • Member
  • *
  • Posts: 1
Sync to Android Device fails with MC 30/31 Linux
« on: May 24, 2023, 05:11:33 am »

Hi,

I notice a problem when trying to sync files to my Android phone on linux (using MC 31 latest build, but this also happens with MC 30):

- I can add the device -- it's not automatically detected (I think this is normal on linux?); I have to add it as a "virtual handheld", with the device path being '/run/user/1000/gvfs/mtp:host=Google_Pixel_4a_16231JEC200129/Interner\ gemeinsamer\ Speicher/Music'

- So far everything looks good, selecting "sync handheld > details" shows me all the files on the device, and the details view shows status "In Queue" for files about to be synced.

- But when I start the sync, the status for the files not already on the device changes to "error". In the log, I see a lot of lines like this:

0931076: 140643829524160: Handheld: CPortableDriveBase::TransferFile: Creating output filename and path
0931076: 140643829524160: General: JRFileSystem::MakeDirectoryTree: Failed! Path=/run/user/1000/gvfs/mtp_host=Google_Pixel_4a_16231JEC200129/Interner gemeinsamer Speicher/Music/Sylvgheist Maëlström/Norillag/
0931076: 140643829524160: Handheld: CPortableDriveBase::TransferFile: Creating output file
0931076: 140643829524160: Handheld: CPortableDriveBase::TransferFile: Finish (0 ms)

I think the problem here is, that MC tries to upload the file with a path containing "mtp_host", while it should be "mtp:host" (colon instead of underscore). For example, if I do 'ls /run/user/1000/gvfs/mtp:host=Google_Pixel_4a_16231JEC200129/Interner gemeinsamer Speicher/Music' that is working just fine, and I can also create files and directories on the device that way.

Maybe the problem is in my debian/gvfs/libmtp configuration? But I suspect it's a problem in MC... When adding the device, a path wich "mtp:host" ist used, and also when MC is listing the device content (as can be seen in the log)... only when MC tries to upload files to the phone, MC seems to use a path containing "mtp_host".

Thanks if someone knows how to help,
Heinrich

---- More Details:
MC Linux Build 31.0.12
Debian 12 (sid/unstable)
Log file (attached)

Logged
Pages: [1]   Go Up