<p>I currently have two Geany instances open. One is being used for a dedicated project; the other is a "scratch" instance I keep open for general-purpose rapid iteration.</p>
<p>I don't mind using the GNOME filepicker to open/save files when working on dedicated projects, but I tend to prefer the terminal for speed when I'm rapidly opening and closing things or when I need to create quick hacks without breaking mental flow.</p>
<p>Unfortunately, Geany wants to send <em>everything</em> to its "first instance" when invoked at the commandline. Due to coincidence, apparently this is the instance with the dedicated project in it. Soooo, I get to use the terminal with my dedicated projects, but am forced to use the filepicker (over NFS!!!) when doing quick hacks. Haha.</p>
<p>So. I found Geany's <code>--socket-file</code> parameter, but I do not understand how to use it <em>as only the master Geany instance has a socket file in <code>/tmp</code>!</em></p>
<pre><code>$ ls .config/geany/
colorschemes filedefs geany.conf geany_socket_darkstar__0 keybindings.conf plugins tags templates
$ readlink .config/geany/geany_socket_darkstar__0
/tmp/geany_socket.b5c4f11f
$ lsof | grep geany_socket
geany 17853 i336 5u unix 0xc2b68240 0t0 4654382 /tmp/geany_socket.b5c4f11f
$ ls /tmp/geany_socket*
/tmp/geany_socket.b5c4f11f
$ ps aux | grep [g]eany
i336 17853 0.1 1.7 103224 36696 ? Sl Mar04 74:50 geany
i336 17955 0.0 1.6 105060 34036 ? Sl Mar04 25:23 geany
$
</code></pre>
<p>I'm curious why <code>--socket-file</code> exists at all. There are no options that allow me to start an instance with a specified socket file of my own choosing, for instance; I have to rely on Geany creating the socket file itself so I can use it.</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/1834">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJyz8trW-5Ih0BQSuk-w3ARhw3LEfks5tqWYigaJpZM4Tc28K">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJw_E8X2vovQir1ZJUCFY7_SCZd_xks5tqWYigaJpZM4Tc28K.gif" height="1" width="1" alt="" /></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/1834"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>
<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://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Feature request: Ability to open files in(to) a specific open session when using `geany` at commandline (#1834)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1834"}}}</script>