mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +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);
|
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 ();
|
g_settings_sync ();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user