<p><a href="https://github.com/codebrainz" class="user-mention">@codebrainz</a> </p>

<blockquote>
<p>It would be easier to review (and look back to later) if it was broken down into the general stages of the change, like in a few different commits.</p>
</blockquote>

<p>It can be broken into the following steps:</p>

<ul>
<li><p>Add the option reproducer to libmain and export main_get_persistent_argv (or however we call it)</p></li>
<li><p>Alter utils_resource_dir -> utils_resource_path to support RESOURCE_FILE_GEANY (or however we call it)</p></li>
<li><p>Rewrite utils_start_new_geany_instance() - this uses the above and must be the last one.</p></li>
</ul>

<blockquote>
<p>the stuff with the options lookup table, and new globals, functions, and data types (change 3..N) seems like a lot of complexity (though it may indeed be warranted)</p>
</blockquote>

<p>I'm not aware of an easier way to properly reproduce part of the options. Well, GeanyOptionEntryAux can be replaced with a const char *const with the short options that must be persistent, but that would be less clear.</p>

<blockquote>
<p>and the part that guards out the is_osx_bundle() seems unrelated</p>
</blockquote>

<p>Really. I saw a warning "unused function" under Win~1, and instintively fixed it...<br>
Can you please apply this change only to Geany?</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/pull/637#issuecomment-137814146">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ832RjuRkr84RJLCHyi_KuvGsy14ks5oudvIgaJpZM4F1KFb.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/pull/637#issuecomment-137814146"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>