tags:

views:

216

answers:

1

How can I get the display number that used while running Xvfb? For example somebody run

./Xvfb :14

I need somehow to get the used display number 14.

Thanks in advance

A: 

There are two ways I can think of:

  1. Look for the lock files, which will typically take the form \tmp.X*-lock, where * is the display number;
  2. Look at the log files, typically \var\adm\xfvb.log, but might be anywhere. There should be a line which says which display xfvb started listening to.
Charles Stewart