From e808a99047353db0bbb397b77dd391b7316a3678 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Wed, 5 Aug 2015 16:42:08 +1200 Subject: [PATCH] Warn if deprecated options logind-load-seats or xdg-seat are in configuration --- common/configuration.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/configuration.c b/common/configuration.c index 250d052b..895085e3 100644 --- a/common/configuration.c +++ b/common/configuration.c @@ -73,6 +73,11 @@ config_load_from_file (Configuration *config, const gchar *path, GList **message { gchar *value, *k; + if (messages && g_str_has_prefix (group, "Seat:") && strcmp (keys[j], "xdg-seat") == 0) + *messages = g_list_append (*messages, g_strdup_printf (" [%s] contains deprecated option xdg-seat, this can be safely removed", group)); + if (messages && strcmp (group, "LightDM") == 0 && strcmp (keys[j], "logind-load-seats") == 0) + *messages = g_list_append (*messages, g_strdup (" [LightDM] contains deprecated option logind-load-seats, this can be safely removed")); + value = g_key_file_get_value (key_file, groups[i], keys[j], NULL); g_key_file_set_value (config->priv->key_file, group, keys[j], value); g_free (value); -- 2.39.2