~unity-2d-team/unity-2d/trunk

Viewing all changes in revision 810.

  • Committer: Tarmac
  • Author(s): Tiago Salem Herrmann
  • Date: 2011-12-08 12:28:25 UTC
  • mfrom: (807.1.1 unity-2d)
  • Revision ID: tarmac-20111208122825-gxd52f8mkkl5o8ru
In a particular scenario unity-2d-places may abort due to a SIGABRT raised by QConf().
If for some reason (probably during a distro upgrade) the schema file isn't properly installed and
unity-2d-places is wrapped, then it simply aborts with the following message:

unity-2d-places: [FATAL] Settings schema 'com.canonical.Unity2d' is not installed

This patch adds a simple check if the schema file is present, and if not, assume the default
value. Other components like launcher and panel won't probably have this same issue since
they keep running in memory, and not launched on-the-fly.. Fixes: https://bugs.launchpad.net/bugs/857575. Appoved by .

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: