@R1dO nice review

> The 1st observation I draw from this is that gio (it is a gtk library 
> corrrect?) behaves differently on windows and linux.

GIO is of the Glib/GTK family yes, and indeed it would appear that it does not 
understand Windows links.  The only way to know what it does is to read the 
source, and of course that can have changed since I looked (see 2013 date on 
wiki entry).

> The 2nd observation is that my linux box does not behave as in your 3rd 
> comment. If I understand that one correct the default behaviour should create 
> a new file. However (luckily for me) it honours the link.

In fact it is because it behaves as in my point 3 in the first two rows (the 
only two using GIO) that it preserves the link, it falls back to writing over 
the old file when something goes wrong with creating and renaming the new file, 
including not being able to copy the old files metadata, like permissions and 
ownership.  Are you sure your permissions and umask allow it to set those?  But 
possibly it also specifically checks for and preserves links.

@codebrainz GIO makes the `file~` backups if its called with the boolean 
parameter set, see the left hand option in the table.

Of course this only works if GIO is used, so only in that one row.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1533#issuecomment-313823318

Reply via email to