Page 1 of 1

Error saving changes to file

Posted: 2023-01-31, 01:55 UTC
by mronegin
As an example, the termux system folder... you can copy, rename and delete files anywhere, but when you edit them and save the changes, it gives an error. Changes actually are saved, but you can close this file only by the "close without changes" function. Of course root access was granted. Terminal editors works fine, but they are not so convenient to use. Error comes frome above v3.24 and still here.

Re: Error saving changes to file

Posted: 2023-01-31, 17:16 UTC
by ghisler(Author)
Have you tried the latest beta version? I made a bugfix exactly for this.

Re: Error saving changes to file

Posted: 2023-01-31, 20:00 UTC
by mronegin
Oh, thanks! In v.3.42beta1d_2140 issue is fixed!

Re: Error saving changes to file

Posted: 2023-03-17, 13:06 UTC
by Misalf
Hello, I'm experiencing a problem that may be related.

TC Version 3.42beta4d
Android 12

After changing a file which is owned by root using the text editor, it is always saved on exit, regardless of the editors settings ("Confirm saving file" is activated in Settings).

It seems to depend on the file's location, though.
Editing files in

Code: Select all

/data/adb/modules/*
(Magisk), files will get saved without confirmation on exit.
But editing f.e.

Code: Select all

/data/data/com.ghisler.android.TotalCommander/shared_prefs/TotalCommander.xml
I'm correctly asked if I want to the changes to be saved.

This could potentially lead to unwanted file changes when accidentally opening a file with the text editor - not noticing that changes were made - and simply exiting the editor.
Also, when switching between opened apps using gestures, I often erronously input a white-space (because of the space bar sharing an area for the gesture, which is not Total Commander's fault but my own) and the file gets saved.

I understand that file handling becomes more complicated with newer Android versions so I can probably only hope for user friendly workarounds to be found.

Thank's to all involved for Total Commander, it's awesome!

Re: Error saving changes to file

Posted: 2023-03-19, 09:55 UTC
by ghisler(Author)
I will check it, thanks for your report.