<p>$XDG_RUNTIME_DIR is the place where to put socket files these days.</p>
<p>It seems good practice to create a sub-directory as well, perhaps we<br>
create more files there in the future.</p>
<p>The fallback to write in /tmp remains for the rare occasions where<br>
$XDG_RUNTIME_DIR cannot be used.</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/2222'>https://github.com/geany/geany/pull/2222</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>prefer XDG_RUNTIME_DIR over /tmp for the socket</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2222/files#diff-0">src/socket.c</a>
    (31)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/2222.patch'>https://github.com/geany/geany/pull/2222.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/2222.diff'>https://github.com/geany/geany/pull/2222.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/2222?email_source=notifications&email_token=AAIOWJ2DWEKY5ZKQYTPGLA3QABZVLA5CNFSM4IE3PHAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HAAMTZQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZCYXRD37C5HZCPEV3QABZVLANCNFSM4IE3PHAA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ2Z5INZTA4VXCPRGQLQABZVLA5CNFSM4IE3PHAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HAAMTZQ.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/2222?email_source=notifications\u0026email_token=AAIOWJ2DWEKY5ZKQYTPGLA3QABZVLA5CNFSM4IE3PHAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HAAMTZQ",
"url": "https://github.com/geany/geany/pull/2222?email_source=notifications\u0026email_token=AAIOWJ2DWEKY5ZKQYTPGLA3QABZVLA5CNFSM4IE3PHAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HAAMTZQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>