[Geany-devel] g_file_replace_contents patch - Re: Safe file saving - permissions issue

Nick Treleaven nick.treleaven at xxxxx
Tue Nov 2 17:48:32 UTC 2010

On Fri, 10 Sep 2010 15:35:59 +0100
Nick Treleaven <nick.treleaven at btinternet.com> wrote:

> I've still been using a GLib 2.14 system (so haven't personally tested
> this), but I think we ought to try using GIO for document saving as it
> may fix the network file truncation problems.
> I attach an edited version of Алексей's patch, which doesn't make
> backups. Please test - if GIO saving is used then you should see a
> debug message "Using GIO to save: /path/foo.c" on saving.
> File permissions hopefully will be maintained.
> I suggest we apply it (but maybe with a new hidden pref
> use_old_file_saving if we include it in a release, in case it doesn't
> work for some people).

I've now committed this patch to SVN for further testing. Thanks again
to Алексей.


More information about the Devel mailing list