Skip to content

Commit

Permalink
Infer the plasma wayland session's tty by using XDG_VTNR
Browse files Browse the repository at this point in the history
Also use the new set_tty function now.
  • Loading branch information
Vogtinator committed Aug 1, 2018
1 parent 8016c6e commit babdb36
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/x11/start_wayland_plasma5.pm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ sub run {
assert_screen 'generic-desktop', 60;

# We're now in a wayland session, which is in a different VT
console('x11')->{args}->{tty} = 3;
x11_start_program('xterm');
my $tty = script_output('echo $XDG_VTNR');
send_key("alt-f4"); # close xterm

console('x11')->set_tty(int($tty));
}

sub test_flags {
Expand Down

0 comments on commit babdb36

Please sign in to comment.