<p><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #1763.">Closes</span>  <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="295502941" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/1763" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/1763/hovercard" href="https://github.com/geany/geany/issues/1763">#1763</a>.</p>
<p>I introduced an <code>enum</code> in <code>src/keyfile.c</code> called <code>ConfigPayload</code> which determines whether to read/write preference-data or session-data.</p>
<p>The strings <code>"geany.conf"</code> and <code>"session.conf"</code> are now defined as preprocessor macros <code>PREFERENCES_FILE</code> and <code>SESSION_FILE</code>, respectively. However, the string <code>"geany.conf"</code> still appears in <code>src/keybindings.c</code> and <code>src/libmain.c</code>.</p>
<p>For the sake of backwards compatibility, if <code>session.conf</code> does not exist, the data is read from <code>geany.conf</code> instead. However, the old session data is not cleared from <code>geany.conf</code> when this happens.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/2776'>https://github.com/geany/geany/pull/2776</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>split config file into preferences and session</li>
  <li>read rec files from geany.conf if no session.conf</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2776/files#diff-2810524eed127fdf86cd7a7aaac164efa0d240a2da10844304e79e0307dccaf3">src/keyfile.c</a>
    (99)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/2776.patch'>https://github.com/geany/geany/pull/2776.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/2776.diff'>https://github.com/geany/geany/pull/2776.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2776">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5TL6Z3K722J6V7WHDTG4SC5ANCNFSM42KJV3OQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ2QP7NTQ2LGMBV3WKTTG4SC5A5CNFSM42KJV3O2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4MVE6JSA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2776",
"url": "https://github.com/geany/geany/pull/2776",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>