retext icon indicating copy to clipboard operation
retext copied to clipboard

When editing file over MTP under KDE, autosave asks for confirmations

Open a13ph opened this issue 1 year ago • 1 comments

Reproduction: 0. Open Retext under KDE, connect MTP device

  1. Enable autosave
  2. Open file over MTP
  3. Edit it
  4. Wait until autosave kicks in

Expected: silent autosave Actual: Save confirmation dialog, then overwrite confirmation dialog

This is not happenning on XFCE, so I assume this issue is related to how KDE handles MTP. Any pointers on how to change this behavior while maintaining constraints of editing files over MTP under KDE are welcome.


Distro: Linux Mint 22 DE: KDE 5.27.11 5.27.11

a13ph avatar Nov 23 '24 11:11 a13ph

Thank you for the bug report!

It looks like KDE creates a copy of that file on the local filesystem, passes it to the application (ReText), and then watches for the changes. And after ReText modifies the file, it prompts you with questions whether to copy the file to the MTP device. I checked and the same happens with other non-KDE editors like Geany.

There is not much I can do in ReText about this. The only idea I have is to disable auto-save if the edited file is a local copy created by KDE. But I would like to avoid DE-specific hacks if possible.

However, I found this discussion which suggests that installing kio-fuse package should solve the problem. Maybe it will work for you?

mitya57 avatar Jan 04 '25 17:01 mitya57