<blockquote>
<p>Is the initialisation complete when the signal is emitted or not?</p>
</blockquote>

<p>Yes, it is completed (the same way as before).</p>

<p>Maybe I was a bit unclear about what I meant in the very first message in the pull request - sorry for that.</p>

<blockquote>
<p>If it is, fine, but then why can it cause problems with some plugins?</p>
</blockquote>

<p>The signal itself doesn't cause any problems - if plugins use something like</p>

<pre><code>g_signal_connect(geany_object, "geany-startup-complete", on_startup_complete, NULL);
</code></pre>

<p>everything is fine. However if plugins don't use geany-startup-complete and rely on the fact that the initialization is completed before entering the main loop, which was the case before this patch, e.g. using</p>

<pre><code>g_idle_add(on_startup_complete, NULL);
</code></pre>

<p>when loaded, then things will break because startup won't be completed at this point.</p>

<blockquote>
<p>If it is required that plugins do nothing (or nothing using the idle loop, or a timer?) until this signal then that needs to be documented, though I would argue that it would be better to fix it so plugins > need not worry.</p>
</blockquote>

<p>Plugins can do anything they wish in the idle call (idle loop will already be running at that point), they just shouldn't assume initialization is finished (the missing part at this point will be document/project opening).</p>

<p>I could move plugin initialization inside on_startup_complete() but I'd have to move more things there and I'm slightly worried I might break more things on the way. </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/924#issuecomment-191252467">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ7uHX0bMi-0ildK65R-aKSxqIm9zks5ppZtogaJpZM4HlvXl.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/924#issuecomment-191252467"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>