Error saving changes to file

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
mronegin
Junior Member
Junior Member
Posts: 2
Joined: 2023-01-31, 01:22 UTC

Error saving changes to file

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Error saving changes to file

Post by *ghisler(Author) »

Have you tried the latest beta version? I made a bugfix exactly for this.
Author of Total Commander
https://www.ghisler.com
mronegin
Junior Member
Junior Member
Posts: 2
Joined: 2023-01-31, 01:22 UTC

Re: Error saving changes to file

Post by *mronegin »

Oh, thanks! In v.3.42beta1d_2140 issue is fixed!
Misalf
Junior Member
Junior Member
Posts: 5
Joined: 2023-03-17, 11:25 UTC

Re: Error saving changes to file

Post 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!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Error saving changes to file

Post by *ghisler(Author) »

I will check it, thanks for your report.
Author of Total Commander
https://www.ghisler.com
Post Reply