SUMMARY *** When right clicking and sending an m4a audio file, the file that appears in android is renamed with an mp3 extension *** STEPS TO REPRODUCE 1. have KDE Connect set up as normal, and file sharing enabled. 2. Create a file ending in .m4a on the computer sending the file. Actual content is irrelevant, can be empty, text, etc. 3. Right click that file in Dolphin, and choose "Send to '[android device name here]' via KDE Connect" 4. On the android device, navigate to the directory where KDE Connect is configured to deposit the file. OBSERVED RESULT The file has been renamed with a .mp3 extension. (Its contents are unaltered) EXPECTED RESULT The filename should remain unchanged SOFTWARE/OS VERSIONS Linux/KDE Plasma: Distro: Arch Linux Kernel: 5.19.9-arch1-1 KDE Plasma Version: 5.25.5 KDE Frameworks Version: 2.98.0 Qt Version: 5.15.6 KDE Connect(Linux): 22.08.1 Android version: 10 Android kernel: 4.19.95 Phone model: Moto G Power 2021 KDE Connect(Android): 1.19.1 ADDITIONAL INFORMATION Sending an m4a file from one Linux PC to another Linux PC does not result in this.
With further testing, I've found that .qt files get changed to .mov, and .jpeg files get changed to .jpg. I suspect something is mapping the extension to a mime type, then back to an extension. Why the extension is being modified at all, no idea.
I've debugged this a long time ago, and IIRC the problem is this: When "saving" the file Android automatically appends an extension, so if we just passed the full filename to Android we'd end up with foo.bar.bar. To work around this we pass only foo and have Android append the extension based on the file type. Some types have more than one possible extension (e.g. jpg vs jpeg) so sometimes we end up with a different one than we started with. I'm not saying there's no way to fix that, but if there is one I didn't find it back then
I can confirm. In my case .ai (Adobe Illustrator files) got changed to .ps as extension.
*** Bug 468924 has been marked as a duplicate of this bug. ***