<blockquote>
<p><a href="https://github.com/codebrainz" class="user-mention">@codebrainz</a> we could, but that would mean using the GIO API only, never ever paths or anything like it. The whole mess about file saving so well documented by <a href="https://github.com/elextr" class="user-mention">@elextr</a> would be reduced to the g_file_replace_contents(), with its pros and cons.</p>
</blockquote>

<p><a href="https://github.com/b4n" class="user-mention">@b4n</a> This is what we already do when use_gio_unsafe_file_saving=TRUE since <a href="https://github.com/geany/geany/pull/621" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/621" data-id="102466546" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#621</a> (well, for the edited files only, not for Geany config files etc. but there's no point using GIO for those) - this is why I asked what settings <a href="https://github.com/mf0hka" class="user-mention">@mf0hka</a> is using.</p>

<p>Now in my opinion the "unsafe" in the name is a bit unfortunate - it's much less unsafe than it may seem from the name and people might be disabling it because of it. The second unfortunate thing is there are 4 combinations of</p>

<p>use_atomic_file_saving<br>
use_gio_unsafe_file_saving</p>

<p>but just 3 different settings. Finally, the value isn't related to "saving" only any more - it determines the operations used both for opening and saving.</p>

<p>So it would be better to have a single entry in Various for this, something like "file_access_mode" with a dropdown containing 3 values - "GIO", "atomic", "POSIX", defaulting to "GIO" (I'd mention the unsafeness in the documentation with some more discussion but not directly in the mode name).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/issues/921#issuecomment-193227774">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJx3Hzsn8Dch8bIVaSmuTUmXtFvHdks5prBcxgaJpZM4HktYA.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/921#issuecomment-193227774"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>