gsettings tool: report failure to write

If a key is locked down, we should report an error if we
fail to write it.

https://bugzilla.gnome.org/show_bug.cgi?id=704424
This commit is contained in:
Matthias Clasen 2013-07-19 19:41:24 -04:00
parent dc87c453fb
commit 8753df9d70

View File

@ -513,7 +513,11 @@ gsettings_set (GSettings *settings,
exit (1);
}
g_settings_set_value (settings, key, new);
if (!g_settings_set_value (settings, key, new))
{
g_printerr (_("The key is not writable\n"));
exit (1);
}
g_settings_sync ();