complete-run: Run Xvfb with depth 24

A X11 server with a bit depth of eight is highly unusual and is likely
not supported by most code out there, including cairo. Just 256 colors?!
Thus, this commit changes complete-run.pl to use the more usual depth of
24. This makes Xvfb use 32 bits per pixel, which is also "more usual".

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2021-06-02 10:20:48 +02:00 committed by Orestis Floros
parent 016017b736
commit f7e4f4e5e8
No known key found for this signature in database
GPG Key ID: A09DBD7D3222C1C3
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ if ($options{xvfb}) {
# parent when ready, so that the wait call will be interrupted. We
# cant implement this in Perl, as Perls waitpid transparently
# handles -EINTR.
exec('/bin/sh', '-c', qq|trap "exit" INT; trap : USR1; (trap '' USR1; exec Xvfb :$n -screen 0 640x480x8 -nolisten tcp) & PID=\$!; wait; if ! kill -0 \$PID 2>/dev/null; then echo 1:\$PID > $path; else echo 0:\$PID > $path; wait \$PID; fi|);
exec('/bin/sh', '-c', qq|trap "exit" INT; trap : USR1; (trap '' USR1; exec Xvfb :$n -screen 0 640x480x24 -nolisten tcp) & PID=\$!; wait; if ! kill -0 \$PID 2>/dev/null; then echo 1:\$PID > $path; else echo 0:\$PID > $path; wait \$PID; fi|);
die "exec: $!";
}
chomp(my $kill = slurp($path));