mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
dc87c453fb
commit
8753df9d70
@ -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 ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user