← Back to team overview

launchpad-dev team mailing list archive

Re: Running lp/html5browser in a headless container

 

On 8 September 2011 19:22, curtis Hovey <curtis.hovey@xxxxxxxxxxxxx> wrote:
[...]
> This is how I work in a container with html5browser/webkit:
> Xvfb :23 -ac -screen 0 1024x768x24 &
> env -i DISPLAY=:23  ./bin/py
> from gi.repository import Gtk

I landed a branch today that uses xvfb-run to reproduce the
above. It's just a thin wrapper around xvfb-run, but has your
suggested -ac and -screen args hard-coded in.

  bin/with-xvfb bin/py

It also adds two conveniences:

- It will search in the bin directory for the specified command, so
  the above can be contracted to:

    bin/with-xvfb py

  This could save dozens of keypresses per career.

- If no command is given it spawns a shell.

Let me know if this does the right thing for you.

Gavin.


References