-
There is a pref in geany.conf: "use_gio_unsafe_file_saving". "Whether to use GIO as the unsafe file saving backend." |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Geany does not disable the GIO behaviour, it simply does not use GIO code to save if the setting is false. Geany has three ways of saving files. For details see my PHD thesis (well its nearly as long) on the subject here |
Beta Was this translation helpful? Give feedback.
-
Why would you disable this on the first place? The issue you linked has a fairly complete explanation on why it exists, and unless save actually fails (e.g. no free space, failure to rename to the source or other errors). If really Caja is showing those file for a longer time, I see two possibilities: the save failed and the file was left around (either a safety feature or a bug in GIO), or the file has been renamed and there's a bug in Caja not noticing. |
Beta Was this translation helpful? Give feedback.
-
This is a bad news for me; so, no way to get rid of this because the application developers write the GIO code into their apps. I suppose in case of Geany the choice is only possible because there are other options for saving. The only solution is to not use GTK applications. (Except Geany which gives the user the freedom of choice.) But I remember that formerly this "GIO saving" was not used, no '.goutputstream-' files were created. The "evolution"...
I do not want any swap file, backup file ... be created, because they are unnecessary and harmful for envorinment. Unnecessary because if in 10.000 cases there are 1 case with a problem that is not a tragedy. That 1 case does not justify the other 99.999 totally unnecessary writes. And those unnecessary writes means use of energy and hardware wear .i.e. destruction of nature. And if you say that this does not matter since it is a very little energy and hardware wear ... you are wrong: these "little nothings" are made by millions; that is it makes a huge difference globally. Similar stupidity (wrong for nature) is that now not the noatime option is the default mount option in Linux kernel. |
Beta Was this translation helpful? Give feedback.
-
You may hold that personal opinion, fine, but many others, including most of those who make and use Geany and those who make GIO do not agree. And the anguish of those who lose their work is significant.
Certainly will improve the power consumption, but reliability not so much, SSDs don't seem massively better than HDDs, Backblaze latest data has AFR of 0.98% for SSDs and 1.47% for HDDs, so an all SSD system isn't that much better (and the SSDs are newer than the HDDs, lets see what the trend over time is). And mitigating drive failure is why I said RAID array, and I use a mirrored pair day to day, but of course thats double or more the power, take that environment. 😁
But you had a backup right? Oh dear ..... |
Beta Was this translation helpful? Give feedback.
Geany does not disable the GIO behaviour, it simply does not use GIO code to save if the setting is false. Geany has three ways of saving files. For details see my PHD thesis (well its nearly as long) on the subject here