You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
-a --auto-servernum try to get a free server number, starting at
--server-num (deprecated, use --auto-display
instead)
-d --auto-display use the X server to find a display number
automatically
Thank you @micheljung for reporting this. It does seem like -a is deprecated in recent version of xvfb-run but it hasn't made its way into Ubuntu. Even in version 20.04 I get:
xvfb-run: usage error: need a command to run
Usage: xvfb-run [OPTION ...] COMMAND
Run COMMAND (usually an X client) in a virtual X server environment.
Options:
-a --auto-servernum try to get a free server number, starting at
--server-num
-e FILE --error-file=FILE file used to store xauth errors and Xvfb
output (default: /dev/null)
-f FILE --auth-file=FILE file used to store auth cookie
(default: ./.Xauthority)
-h --help display this usage message and exit
-n NUM --server-num=NUM server number to use (default: 99)
-l --listen-tcp enable TCP port listening in the X server
-p PROTO --xauth-protocol=PROTO X authority protocol name to use
(default: xauth command's default)
-s ARGS --server-args=ARGS arguments (other than server number and
"-nolisten tcp") to pass to the Xvfb server
(default: "-screen 0 1280x1024x24")
I'm curious to know whether you installed xvfb-run via your distro's package manger? If so, what distro/version are you using?
Anyway, in your PR just mention -d is recommended on newer versions. I would keep mentioning -a for all the Ubuntu users out there who may not get updated for a while.
Activity
Recommend `xvfb-run -d` instead of `xvfb-run -a`
antoinerg commentedon Dec 4, 2019
Thank you @micheljung for reporting this. It does seem like
-ais deprecated in recent version ofxvfb-runbut it hasn't made its way into Ubuntu. Even in version20.04I get:I'm curious to know whether you installed
xvfb-runvia your distro's package manger? If so, what distro/version are you using?micheljung commentedon Dec 5, 2019
After
xvfb-run --versiondidn't exist I gave up looking for its version :) We're on RHEL7. I'll try to gather some more info tomorrow.antoinerg commentedon Dec 5, 2019
Good to know :) I am also using a more recent version like you are.
I understand! It's a weird omission on their part. It looks like
xvfb-runis a one file project. Here's how it's packaged in NixOS.Anyway, in your PR just mention
-dis recommended on newer versions. I would keep mentioning-afor all the Ubuntu users out there who may not get updated for a while.Thanks again @micheljung
tjaalton commentedon Jun 13, 2022
note that xvfb-run was forked from Debian in 2008, and this '-d' thing was added in the Fedora fork 4y ago...