Search code examples
command-lineprofileconcurrencyxulrunner

Running xulrunner multiple times concurrently


We have an xulrunner application that is running as a background html to pdf converter. This is essentially a commandline application and shows no user interface. However, xulrunner defaults to trying to share profiles and instances of the application. How can we run multiple instances of the application concurrently without hitting profile locking etc?


Solution

  • What seems to work (although it's slow and fairly wasteful) is to create a new profile for each invocation, and clean it up after termination: xulrunner -profile $tempdir -no-remote application.ini ... rm -fr $tempdir