diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2015-08-05 16:42:08 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2015-08-05 16:42:08 +1200 |
commit | e35bd9d0964c39d3cd4bf872f20467e1107b7635 (patch) | |
tree | 7c73f2459288011cd920f4f243e0f35a01b927b7 /common | |
parent | 61cc963349a67fa45407e11f82e763314f4bfd20 (diff) | |
download | lightdm-e35bd9d0964c39d3cd4bf872f20467e1107b7635.tar.gz |
Warn if deprecated options logind-load-seats or xdg-seat are in configuration
Diffstat (limited to 'common')
-rw-r--r-- | common/configuration.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |