[Sugar-devel] SoaS font scaling issue
Walter Bender
walter.bender at gmail.com
Tue Dec 22 22:04:37 EST 2009
Seems we need to look in two places (the first for the XO 1.5 and the
second for the XO 1.0):
if os.path.exists('/etc/olpc-release') or \
os.path.exists('/sys/power/olpc-pm'):
-walter
On Tue, Dec 22, 2009 at 9:53 PM, Art Hunkins <abhunkin at uncg.edu> wrote:
> Oh, my. (Another glitch to work around.)
>
> Assuming fonts work in 1.5 as is 1.0, I need to find a way to leave XO-1.5
> alone as well.
>
> Any sure-fire (and hopefully simple) way to recognize the XO-1.5?
>
> (Walter suggested the 1.0 code - thanks, Walter.)
>
> Art Hunkins
>
> ----- Original Message -----
> From: "James Cameron" <quozl at laptop.org>
> To: "Art Hunkins" <abhunkin at uncg.edu>
> Cc: "Daniel Drake" <dsd at laptop.org>; <sugar-devel at lists.sugarlabs.org>
> Sent: Tuesday, December 22, 2009 9:40 PM
> Subject: Re: [Sugar-devel] SoaS font scaling issue
>
>
>> On Tue, Dec 22, 2009 at 09:21:54PM -0500, Art Hunkins wrote:
>>> def scale_font(self, widget):
>>> if not os.path.exists("/sys/power/olpc-pm"):
>>
>> (Interesting. XO-1.5 does not have this path. XO-1 does.)
>>
>> --
>> James Cameron
>> http://quozl.linux.org.au/
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
--
Walter Bender
Sugar Labs
http://www.sugarlabs.org
More information about the Sugar-devel
mailing list