<div dir="ltr"><div>It is a complex issue, let me try to summarize my understanding of it<br><br></div>* We support multiple toolkits and we need a good to find out which toolkit each activity uses.<br>* IMO trying to figure that out by analyzing the code is not good. Too complicated and too fragile.<br>
<div><div><div class="gmail_extra">* We have a decent way to detect the toolkit by looking at the exec line. Unfortunately that doesn't works for gtk3 vs gtk2 because we (mistakenly) didn't make multiple sugar-activity installable in parallel.<br>
</div><div class="gmail_extra">* Another possible way to handle it would be to have an explicit toolkit property in <a href="http://activity.info">activity.info</a>. That would require to update either all gtk3 or gtk2 activities though.<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">So, all in all I don't see a satisfactory solution to distinguish gtk2 and gtk3. Given that gtk2 has been long deprecated I tend to think we should just give up with that. Let's spend time porting activities instead :) For the future looking at the exec field seems good enough. So if we ever release a gtk4 toolkit we should have a sugar-activity-gtk4 script.<br>
</div><div class="gmail_extra"><br><div class="gmail_quote">On 13 February 2014 17:15, Manuel Quiñones <span dir="ltr"><<a href="mailto:manuq@laptop.org" target="_blank">manuq@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2014-01-31 23:14 GMT-03:00 Daniel Narvaez <<a href="mailto:dwnarvaez@gmail.com">dwnarvaez@gmail.com</a>>:<br>
<div><div class="h5">> On 1 February 2014 03:00, Sam Parkinson <<a href="mailto:sam.parkinson3@gmail.com">sam.parkinson3@gmail.com</a>> wrote:<br>
>><br>
>><br>
>> Hi,<br>
>><br>
>> Dnarvaez and I were discussing this on the irc; we really need to do<br>
>> distinction between the tool kit version in <a href="http://activity.info" target="_blank">activity.info</a>.<br>
>><br>
>> This would be needed to for:<br>
>><br>
>> view source<br>
>> because now changes to sugar-toolkit-gtk3 can break the gtk2 toolkit (!)<br>
>><br>
>> Basically we were thinking to make a new thing: sugar-activity3 to launch<br>
>> gtk3 activities.<br>
><br>
> It should probably just be a symlink.<br>
>><br>
>> It would probably be the same at first, but in the future could be used to<br>
>> stop breakage to gtk2 activities.<br>
><br>
>  I think it was a mistake to not make a sugar-activity3 when we ported.<br>
> Though I'm not sure we can undo that now. It would be an API breakage (gtk3<br>
> activities would stop to work unless they changed to sugar-activity3).<br>
><br>
> If ever make another parallel installable gtk toolkit it should definately<br>
> be sugar-toolkit4 though :)<br>
>><br>
>> So yeah, is this going to break everything? Could you think of a better<br>
>> way?<br>
><br>
> It should not break much actually. Activities that have not switched to<br>
> sugar-activity3 will just not get the right sugar toolkit in view source.<br>
><br>
> The main issue is probably that activities that change to sugar-activity3<br>
> won't run on old sugar versions. Sigh... wish we had done this when porting<br>
> really :/<br>
><br>
> The alternative, as we discussed, is a new "toolkit" property in the info.<br>
> That should not break stuff, it's one more thing to remember for activity<br>
> authors though. Maybe we can have bundlebuilder warn about it.<br>
<br>
</div></div>So, do we agree to have toolkit type and version in the <a href="http://activity.info" target="_blank">activity.info</a>?<br>
We have a pull request on this:<br>
<br>
<a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/104" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/104</a><br>
<br>
I'm fine with this. I think we need two versions: minimum and maximum.<br>
This is the same <a href="http://activities.sugarlabs.org" target="_blank">activities.sugarlabs.org</a> has.<br>
<br>
Also see Android manifest as reference:<br>
<a href="http://developer.android.com/guide/topics/manifest/uses-sdk-element.html" target="_blank">http://developer.android.com/guide/topics/manifest/uses-sdk-element.html</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
.. manuq ..<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Daniel Narvaez<br>
</div></div></div></div>