Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
a13ph opened this issue Nov 23, 2024 · 1 comment
Open

Comments

@a13ph
Copy link

a13ph commented Nov 23, 2024

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

@mitya57
Copy link
Member

mitya57 commented Jan 4, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants