From 3fd8d5c0d909d4b7e8cab285a08410796cc69e69 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Mon, 11 Jul 2022 09:18:40 +1200 Subject: Fix crash due to using wrong method to set configuration Regression introduced in 77a7c6b7b8ca896b98ef43826641bdd520650bfb --- src/lightdm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lightdm.c b/src/lightdm.c index 72ac9e7c..74f9ff2d 100644 --- a/src/lightdm.c +++ b/src/lightdm.c @@ -813,7 +813,7 @@ main (int argc, char **argv) if (!config_has_key (config_get_instance (), "XDMCPServer", "hostname")) config_set_string (config_get_instance (), "XDMCPServer", "hostname", g_get_host_name ()); if (!config_has_key (config_get_instance (), "LightDM", "logind-check-graphical")) - config_set_string (config_get_instance (), "LightDM", "logind-check-graphical", TRUE); + config_set_boolean (config_get_instance (), "LightDM", "logind-check-graphical", TRUE); /* Override defaults */ if (log_dir) -- cgit v1.2.1