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

Sascha Silbe silbe at activitycentral.com
Tue May 29 16:49:44 EDT 2012


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.

However, given that this is a fairly common failure mode, there is
something we should do in Sugar: Bailing out with a clear error message if
client.get_default_from_schema('/desktop/sugar/desktop/favorites_layout')
returns None. Patch welcome. :)

Out of curiousity, in which environment did you encounter this problem?
Native Debian or Fedora packages? sugar-jhbuild? sweets? Which distro
(version)?

Sascha

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120529/5d19295e/attachment.pgp>


More information about the Sugar-devel mailing list