[Sugar-devel] [PATCH Sugar] Set favourites layout to RingLayout if it's not set in gconf SL #3652

Manuel Quiñones manuq at laptop.org
Tue May 29 20:24:24 EDT 2012


2012/5/29 Sascha Silbe <silbe at activitycentral.com>:
> Manuel Quiñones <manuq at laptop.org> writes:
>
>> This prevent crashing jhbuild's sugar emulator startup if there is not
>> a gconf setting for '/desktop/sugar/desktop/favorites_layout'.
>
> We already set a default for favorites_layout in sugar.schemas
> (data/sugar.schemas.in). If you're getting None, your gconf setup is
> broken. Sugar (shell) breaking when trying to use favorites_layout is
> just the first and most obvious symptom. The real fix is to get your
> gconf setup to use sugar.schemas, not working around the problem by
> adding a Python level default value in addition to the gconf level
> default value.

Thanks, I see, seems that my gconf setup is wrong because is returning
None for that key.  This is in sugar-jhbuild  Now I need to find why,
as I have sugar-jhbuild/install/etc/gconf/schemas/sugar.schemas with:

    <schema>
      <key>/schemas/desktop/sugar/desktop/favorites_layout</key>
      <applyto>/desktop/sugar/desktop/favorites_layout</applyto>
      <owner>sugar</owner>
      <type>string</type>
      <default>ring-layout</default>
      <locale name="C">
       ...

Cheers,

-- 
.. manuq ..


More information about the Sugar-devel mailing list