Skip to content

Commit f0b2440

Browse files
committed
Determine Seat can_tty value without login1
1 parent 39cc7db commit f0b2440

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/lightdm.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "display-manager-service.h"
2727
#include "xdmcp-server.h"
2828
#include "vnc-server.h"
29+
#include "vt.h"
2930
#include "seat-xdmcp-session.h"
3031
#include "seat-xvnc.h"
3132
#include "x-server.h"
@@ -918,6 +919,10 @@ main (int argc, char **argv)
918919
{
919920
set_seat_properties (seat, NULL);
920921
seat_set_property (seat, "exit-on-failure", "true");
922+
923+
/* in the absence of login1 we find out this using our own heuristics */
924+
seat_set_can_tty (seat, vt_can_multi_seat ());
925+
921926
if (!display_manager_add_seat (display_manager, seat))
922927
return EXIT_FAILURE;
923928
}

0 commit comments

Comments
 (0)