<p>I am well aware of the Unix Domain socket issue with Geany and <code>sudo</code> discussed at length in <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="210318488" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/1411" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/1411/hovercard" href="https://github.com/geany/geany/issues/1411">#1411</a> and reported by users in <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="36252042" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/294" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/294/hovercard" href="https://github.com/geany/geany/issues/294">#294</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="210318488" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/1411" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/1411/hovercard" href="https://github.com/geany/geany/issues/1411">#1411</a>, and <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="261087308" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/1615" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/1615/hovercard" href="https://github.com/geany/geany/issues/1615">#1615</a>. However, prior discussion has focused on what Geany's behavior should be when invoked with <code>sudo</code> and how users can resolve the issue.</p>
<p><strong>This situation, where a file in Geany's configuration is invalid for whatever reason, is one that Geany should more facilitate a more graceful recovery from.</strong> Requiring the user to search the internet to discover how to fix the problem, and then having them need to manually delete a configuration file is not a satisfactory user experience.</p>
<p>Specifically, I would suggest that the dialog <a href="https://github.com/geany/geany/blob/935c16ea25374d323ec4212a1a49bdce68d4603b/src/socket.c#L224">found in the code here</a> should be modified to include an option for Geany itself to delete the problematic socket (<code>~/.config/geany/geany_socket_*</code>), including the potential consequences of this action.</p>

<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/issues/2102">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ6e2z8x3VTg68x-V1VHrmFHPF0SSks5vUu_SgaJpZM4bmS_c">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ0iBd29iDvOBcfg1tJyM-c0YhkAMks5vUu_SgaJpZM4bmS_c.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Geany should recover itself from Unix Domain socket issues (#2102)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/2102"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2102",
"url": "https://github.com/geany/geany/issues/2102",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>