Commit 8753df9d authored by Matthias Clasen's avatar Matthias Clasen

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
parent dc87c453
......@@ -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 ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment