File tree Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -944,6 +944,10 @@ add_login1_seat (Login1Seat *login1_seat)
944
944
Seat * seat = NULL ;
945
945
gboolean is_seat0 , started = FALSE;
946
946
947
+ /* We only create graphical seats */
948
+ if (!login1_seat_get_can_graphical (login1_seat ))
949
+ return TRUE;
950
+
947
951
g_debug ("New seat added from logind: %s" , seat_name );
948
952
is_seat0 = strcmp (seat_name , "seat0" ) == 0 ;
949
953
Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ TESTS = \
181
181
test-open-file-descriptors \
182
182
test-xdmcp-server-open-file-descriptors \
183
183
test-multi-seat \
184
+ test-multi-seat-non-graphical \
184
185
test-mir-autologin \
185
186
test-mir-greeter \
186
187
test-mir-session \
@@ -444,6 +445,7 @@ EXTRA_DIST = \
444
445
scripts/mir-session-compositor-crash.conf \
445
446
scripts/mir-session-crash.conf \
446
447
scripts/multi-seat.conf \
448
+ scripts/multi-seat-non-graphical.conf \
447
449
scripts/no-accounts-service.conf \
448
450
scripts/no-config.conf \
449
451
scripts/no-console-kit.conf \
Original file line number Diff line number Diff line change
1
+ #
2
+ # Check non graphical seats are ignored
3
+ #
4
+
5
+ #?*START-DAEMON
6
+ #?RUNNER DAEMON-START
7
+
8
+ # seat0 starts
9
+ #?XSERVER-0 START VT=7 SEAT=seat0
10
+ #?*XSERVER-0 INDICATE-READY
11
+ #?XSERVER-0 INDICATE-READY
12
+ #?XSERVER-0 ACCEPT-CONNECT
13
+ #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter
14
+ #?LOGIN1 ACTIVATE-SESSION SESSION=c0
15
+ #?XSERVER-0 ACCEPT-CONNECT
16
+ #?GREETER-X-0 CONNECT-XSERVER
17
+ #?GREETER-X-0 CONNECT-TO-DAEMON
18
+ #?GREETER-X-0 CONNECTED-TO-DAEMON
19
+
20
+ # Add seat1
21
+ #?*ADD-SEAT ID=seat1 CAN-GRAPHICAL=FALSE
22
+
23
+ # Check no seat is added
24
+ #?*WAIT
25
+
26
+ # Cleanup
27
+ #?*STOP-DAEMON
28
+ #?GREETER-X-0 TERMINATE SIGNAL=15
29
+ #?XSERVER-0 TERMINATE SIGNAL=15
30
+ #?RUNNER DAEMON-EXIT STATUS=0
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ ./src/dbus-env ./src/test-runner multi-seat-non-graphical test-gobject-greeter
You can’t perform that action at this time.
0 commit comments