James: thank you for checking.<br><br>I think the problem is in the way I'm starting both apps. The Python app stops immediately and the Java app takes a while to start. I don't really know how to solve that correctly. I can think of many ways, but none of them is elegant :-)<br>
<br>Regards,<br><br>     Marcos<br><br><br><div class="gmail_quote">2010/6/3 James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Thu, Jun 03, 2010 at 02:21:01PM +1000, James Cameron wrote:<br>
> Do you set the correct X window properties on the new window, so that<br>
> Sugar would know it is associated with the activity?<br>
<br>
</div>You do.  I've just checked.<br>
<br>
The first window and the second window have the same details:<br>
<br>
_SUGAR_BUNDLE_ID(STRING) = "org.ceibaljam.MathGraph32"<br>
_SUGAR_ACTIVITY_ID(STRING) = "07837ac85b568e9475866ea09a21def06ec13442"<br>
<br>
So this looks like it might be a problem with Sugar.<br>
<div><div></div><div class="h5"><br>
--<br>
James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
</div></div></blockquote></div><br>