summaryrefslogtreecommitdiff
path: root/src/lightdm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lightdm.c')
-rw-r--r--src/lightdm.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/lightdm.c b/src/lightdm.c
index 4ba17ce0..c5eb5c92 100644
--- a/src/lightdm.c
+++ b/src/lightdm.c
@@ -1403,14 +1403,18 @@ main (int argc, char **argv)
{
/* Load dynamic seats from logind */
g_debug ("Monitoring logind for seats");
- g_signal_connect (login1_service_get_instance (), "seat-added", G_CALLBACK (login1_service_seat_added_cb), NULL);
- g_signal_connect (login1_service_get_instance (), "seat-removed", G_CALLBACK (login1_service_seat_removed_cb), NULL);
- for (link = login1_service_get_seats (login1_service_get_instance ()); link; link = link->next)
+ if (config_get_boolean (config_get_instance (), "LightDM", "start-default-seat"))
{
- Login1Seat *seat = link->data;
- if (!add_login1_seat (seat))
- return EXIT_FAILURE;
+ g_signal_connect (login1_service_get_instance (), "seat-added", G_CALLBACK (login1_service_seat_added_cb), NULL);
+ g_signal_connect (login1_service_get_instance (), "seat-removed", G_CALLBACK (login1_service_seat_removed_cb), NULL);
+
+ for (link = login1_service_get_seats (login1_service_get_instance ()); link; link = link->next)
+ {
+ Login1Seat *seat = link->data;
+ if (!add_login1_seat (seat))
+ return EXIT_FAILURE;
+ }
}
}
else