On Wed, Sep 28, 2011 at 12:30 PM, Simon Schampijer <si...@schampijer.de> wrote: > On 09/28/2011 06:24 PM, Walter Bender wrote: >> >> On Wed, Sep 28, 2011 at 10:24 AM, Simon Schampijer<si...@schampijer.de> >> wrote: >>> >>> '/ofw' has been removed on the XOs now. We need to refine the >>> check if the machine is an XO in order to display the >>> information accordingly. >> >> Can we finally agree to create a toolkit method for this? As an >> activity maintainer who needs to occasionally do things differently on >> an XO than other HW, it would be really nice to not have to keep >> changing my XO detection methods as the system changes under me. >> >> regards. >> >> -walter > > We discussed this a bit briefly the other day with Gonzalo and Daniel. The > pro is, that code is not duplicated in activities. The con is, that > activities should not depend on any hardware and use other methods to > determine specific hardware (camera detection etc) and maybe there should be > guidelines about good practices.
I am sure that most of my problems are related to poor programming practice, but in every activity I write, I need to set a font scale differently for the XO than other HW and when I do have, for example, the proper alsa controls for the microphone-sensor input, I still need to know which version of the XO hardware I am using to set proper calibration levels... So I don't see a work-around to not depending on hardware. Some code snippets to show me the way would be greatly appreciated (please add links from the Activity Team pages and in the Almanac). regards -walter > > Good topic, we should see what makes sense and what we can agree on. > > Regards, > Simon > -- Walter Bender Sugar Labs http://www.sugarlabs.org _______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel