-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't check the logind CanGraphical seat property unless login-check-…
…graphical option is set to true. There are too many cases of drivers that don't set the appropriate flags for this feature to work
- Loading branch information
1 parent
dccfe45
commit 9c84285
Showing
12 changed files
with
150 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# | ||
# Check seat graphical status is ignored | ||
# | ||
|
||
#?*START-DAEMON | ||
#?RUNNER DAEMON-START | ||
|
||
# seat0 starts | ||
#?XSERVER-0 START VT=7 SEAT=seat0 | ||
#?*XSERVER-0 INDICATE-READY | ||
#?XSERVER-0 INDICATE-READY | ||
#?XSERVER-0 ACCEPT-CONNECT | ||
#?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter | ||
#?LOGIN1 ACTIVATE-SESSION SESSION=c0 | ||
#?XSERVER-0 ACCEPT-CONNECT | ||
#?GREETER-X-0 CONNECT-XSERVER | ||
#?GREETER-X-0 CONNECT-TO-DAEMON | ||
#?GREETER-X-0 CONNECTED-TO-DAEMON | ||
|
||
# Add seat1 | ||
#?*ADD-SEAT ID=seat1 | ||
|
||
# seat1 starts | ||
#?XSERVER-1 START SEAT=seat1 SHAREVTS=TRUE | ||
#?*XSERVER-1 INDICATE-READY | ||
#?XSERVER-1 INDICATE-READY | ||
#?XSERVER-1 ACCEPT-CONNECT | ||
#?GREETER-X-1 START XDG_SEAT=seat1 XDG_SESSION_CLASS=greeter | ||
#?LOGIN1 ACTIVATE-SESSION SESSION=c1 | ||
#?XSERVER-1 ACCEPT-CONNECT | ||
#?GREETER-X-1 CONNECT-XSERVER | ||
#?GREETER-X-1 CONNECT-TO-DAEMON | ||
#?GREETER-X-1 CONNECTED-TO-DAEMON | ||
|
||
# Remove graphical status from seat | ||
#?*UPDATE-SEAT ID=seat1 CAN-GRAPHICAL=FALSE | ||
|
||
# Nothing happens | ||
#?*WAIT | ||
|
||
# Add graphical status back | ||
#?*UPDATE-SEAT ID=seat1 CAN-GRAPHICAL=TRUE | ||
|
||
# Nothing happens | ||
#?*WAIT | ||
|
||
# Cleanup | ||
#?*STOP-DAEMON | ||
#?GREETER-X-0 TERMINATE SIGNAL=15 | ||
#?XSERVER-0 TERMINATE SIGNAL=15 | ||
#?GREETER-X-1 TERMINATE SIGNAL=15 | ||
#?XSERVER-1 TERMINATE SIGNAL=15 | ||
#?RUNNER DAEMON-EXIT STATUS=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# Check non graphical seats are started anyway | ||
# | ||
|
||
#?*START-DAEMON | ||
#?RUNNER DAEMON-START | ||
|
||
# seat0 starts | ||
#?XSERVER-0 START VT=7 SEAT=seat0 | ||
#?*XSERVER-0 INDICATE-READY | ||
#?XSERVER-0 INDICATE-READY | ||
#?XSERVER-0 ACCEPT-CONNECT | ||
#?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter | ||
#?LOGIN1 ACTIVATE-SESSION SESSION=c0 | ||
#?XSERVER-0 ACCEPT-CONNECT | ||
#?GREETER-X-0 CONNECT-XSERVER | ||
#?GREETER-X-0 CONNECT-TO-DAEMON | ||
#?GREETER-X-0 CONNECTED-TO-DAEMON | ||
|
||
# Add seat1 | ||
#?*ADD-SEAT ID=seat1 CAN-GRAPHICAL=FALSE | ||
|
||
# seat1 starts | ||
#?XSERVER-1 START SEAT=seat1 SHAREVTS=TRUE | ||
#?*XSERVER-1 INDICATE-READY | ||
#?XSERVER-1 INDICATE-READY | ||
#?XSERVER-1 ACCEPT-CONNECT | ||
#?GREETER-X-1 START XDG_SEAT=seat1 XDG_SESSION_CLASS=greeter | ||
#?LOGIN1 ACTIVATE-SESSION SESSION=c1 | ||
#?XSERVER-1 ACCEPT-CONNECT | ||
#?GREETER-X-1 CONNECT-XSERVER | ||
#?GREETER-X-1 CONNECT-TO-DAEMON | ||
#?GREETER-X-1 CONNECTED-TO-DAEMON | ||
|
||
# Cleanup | ||
#?*STOP-DAEMON | ||
#?GREETER-X-0 TERMINATE SIGNAL=15 | ||
#?XSERVER-0 TERMINATE SIGNAL=15 | ||
#?GREETER-X-1 TERMINATE SIGNAL=15 | ||
#?XSERVER-1 TERMINATE SIGNAL=15 | ||
#?RUNNER DAEMON-EXIT STATUS=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
tests/scripts/multi-seat-seat0-non-graphical-disabled.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# | ||
# Check seat0 is started even if it is marked as non-graphical | ||
# | ||
|
||
[test-runner-config] | ||
seat0-can-graphical=false | ||
|
||
#?*START-DAEMON | ||
#?RUNNER DAEMON-START | ||
|
||
# seat0 starts | ||
#?XSERVER-0 START VT=7 SEAT=seat0 | ||
#?*XSERVER-0 INDICATE-READY | ||
#?XSERVER-0 INDICATE-READY | ||
#?XSERVER-0 ACCEPT-CONNECT | ||
#?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter | ||
#?LOGIN1 ACTIVATE-SESSION SESSION=c0 | ||
#?XSERVER-0 ACCEPT-CONNECT | ||
#?GREETER-X-0 CONNECT-XSERVER | ||
#?GREETER-X-0 CONNECT-TO-DAEMON | ||
#?GREETER-X-0 CONNECTED-TO-DAEMON | ||
|
||
# Cleanup | ||
#?*STOP-DAEMON | ||
#?GREETER-X-0 TERMINATE SIGNAL=15 | ||
#?XSERVER-0 TERMINATE SIGNAL=15 | ||
#?RUNNER DAEMON-EXIT STATUS=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
./src/dbus-env ./src/test-runner multi-seat-change-graphical-disabled test-gobject-greeter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
./src/dbus-env ./src/test-runner multi-seat-non-graphical-disabled test-gobject-greeter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
./src/dbus-env ./src/test-runner multi-seat-seat0-non-graphical-disabled test-gobject-greeter |