Skip to content

Commit

Permalink
backgroundManager: check for existance of org.gnome.desktop.backgroun…
Browse files Browse the repository at this point in the history
…d before

continuing.
  • Loading branch information
mtwebster committed Nov 1, 2013
1 parent d48ba2e commit 30aa1b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/ui/backgroundManager.js
Expand Up @@ -10,6 +10,10 @@ function BackgroundManager() {
BackgroundManager.prototype = {

_init: function() {
let schema = Gio.SettingsSchemaSource.get_default();
if (!schema.lookup("org.gnome.desktop.background", true))
return

this._gnomeSettings = new Gio.Settings({ schema: 'org.gnome.desktop.background' });
this._cinnamonSettings = new Gio.Settings({ schema: 'org.cinnamon.desktop.background' });
this._string_keys = ["color-shading-type", "picture-options", "picture-uri", "primary-color", "secondary-color"];
Expand Down

0 comments on commit 30aa1b2

Please sign in to comment.