mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02: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:
@@ -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 ();
|
||||
|
||||
|
Reference in New Issue
Block a user