my ($i3) = @_;
my $reply = $i3->command('open')->recv;
- return $reply->{id};
+ return $reply->[0]->{id};
}
sub get_workspace_names {
$tmp_socket_path = "/tmp/nested-$ENV{DISPLAY}";
+ $args{dont_create_temp_dir} //= 0;
+
my ($fh, $tmpfile) = tempfile("i3-cfg-for-$ENV{TESTNAME}-XXXXX", UNLINK => 1);
if ($config ne '-default') {
strace => $ENV{STRACE},
restart => $ENV{RESTART},
cv => $cv,
+ dont_create_temp_dir => $args{dont_create_temp_dir},
);
# force update of the cached socket path in lib/i3test