From 02e312c696d565e8641c7e78d247a62dde6b9a2c Mon Sep 17 00:00:00 2001 From: Jakob Moser <moser@cl.uni-heidelberg.de> Date: Tue, 8 Mar 2022 14:18:53 +0100 Subject: [PATCH] Add advanced information on xvfb, change title of advanced info sections --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f53422b..fe075f1 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ sudo docker run -it \ This will take a few seconds, in which the container starts, xle parses the sentences and the results are written to a file. Afterwards, the container terminates. <details> -<summary>Advanced tips</summary> +<summary>Advanced information</summary> Note that the `xle` specified in the `docker run` command is the name of the tag you've given the image when building, _not_ the command to be executed (although under the hood the container will call a Linux command also called `xle`). </details> @@ -72,6 +72,15 @@ This script is run inside the Docker container. It first creates an `xlerc` file It then starts the headless X server, waits to ensure it has properly started and then executes the `xle` command. `xle` will load `xlerc`, create a parser, parse the sentence and display windows with the parse results. +<details> +<summary>Advanced information</summary> + +There actually is a nice wrapper that starts an arbitrary command within a virtual X server environment taking care of everything for us. It is called [`xvfb-run`](https://manpages.ubuntu.com/manpages/trusty/man1/xvfb-run.1.html). We tried to use the wrapper in earlier versions of the image, but didn't manage to get it to work on the first try. + +Still, it might be interesting to look into that more in the future. +</details> + + As last step, we take a screenshot of the displayed windows, which is the output of the container. :books: [How do I take a screen shot of my Xvfb buffer?][screenshot] -- GitLab