[Github-comments] [geany/geany] "Save" of existing file in a mountpoint of archivemount is lost, "Save As" works for new files only. (#1774)

db-inf notifications at xxxxx
Tue Feb 20 09:34:16 UTC 2018


A further test shows that with gio_unsafe_save_backup ON in addition to gio_unsafe_file_saving, saving on an archivemounted file system does work. With this flag on, the on-disk copy of the file-to-be-saved is moved out of the way by renaming it with a '~' appended to it's name first. Surprisingly enough modifiying and saving the file again, it's backup copy is replaced correctly as well, with the previous modified file version. So the backup file is first removed, then the original file is renamed, and then the changed file is renamed from it's temporary name to it's original name.

 Of course you get backup files with a '~' appended to their name all over the place.

-- 
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/1774#issuecomment-366920004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180220/3550fd84/attachment.html>


More information about the Github-comments mailing list