xvfb


Xvfb - start or attach a window manager to xvfb


For testing purpose, I used Xvfb.
Today, I want to do some test with wmctrl commmand. I do some test in python like this :
display = ":99"
pXvfb = subprocess.Popen(["Xvfb", display, "-screen", "0", "1024x768x24"])
# wait that xvfb is up
time.sleep(1)
os.environ["DISPLAY"] = display
p = subprocess.Popen( ["wmctrl", "-l" ] )
p.wait()
pXvfb.terminate()
In this test, wmctrl says :
Cannot get client list properties.
(_NET_CLIENT_LIST or _WIN_CLIENT_LIST)
I think, it's normal because I haven't any window manager attach to my Xvfb.
How to start a windows manager (Enlighenment should be good for my case) to manage only Xvfb ?
After some days of works, I can answer myself. Solution is easy as possible : just start windows manager with variable DISPLAY set. So in my python script, I just do :
display = ":99"
pXvfb = subprocess.Popen(["Xvfb", display, "-screen", "0", "1024x768x24"])
# wait that xvfb is up
time.sleep(1)
os.environ["DISPLAY"] = display
# start windows manager
pWM = subprocess.Popen( ["/usr/bin/enlightenment_start", ] )
p = subprocess.Popen( ["wmctrl", "-l" ] )
p.wait()
pXvfb.terminate()

Related Links

xvfb-run with melt HOWTO?
Xvfb - start or attach a window manager to xvfb
Xvfb stdout closes immediately
xvfb-run unreliable when multiple instances invoked in parallel
Focus chrome window in linux when running using xvfb
Xvfb not found on your system
FreeFontPath: FPE “unix/:7100” refcount is 2, should be 1; fixing
xvfb - where do I download the xvfb standalone package?

Categories

HOME
spring-data
barcode-scanner
kendo-dropdown
scroll
swi-prolog
subdomain
theano
ios-simulator
websocket
consul
vue-resource
share
clone
angular-meteor
mithril.js
scheduler
cqrs
nsstring
clish
createjs
google-awareness
twisted
pinterest
android-5.1.1-lollipop
salt-cloud
nullreferenceexception
fido-u2f
kamailio
kaggle
perfino
prompt
python-imageio
social-networking
opnet
mongodb-3.4
xmlunit
busboy
pdfminer
netstat
xvfb
code-rally
cartopy
strapi
ng-repeat
hidden-markov-models
extbase
slideshow
data-uri
ejml
opal-framework
oracle-bmcs
destroy
liteide
android-webservice
network-protocols
bpms
oid
google-identity-toolkit
data-management
always-on-top
maven-release-plugin
qpixmap
i2b2
in-app-billing
juniper-network-connect
arbre
http.client
calcite
ocmockito
findersync
string.format
n-tier-architecture
configurable-product
xml-signature
object-code
osascript
mfmessagecomposeview
two.js
csslint
senchatouch-2.4
fileshare
xmi
django-sites
code39
codahale-metrics
unicoins
eager-loading
cmath
itunes-sdk
idispatch
stretch
viewpagerindicator
cakeyframeanimation
acpi
database-deadlocks
cewolf
odac
sscli

Resources

Encrypt Message