How do I install XULRunner since it's a requeriment for Pencil? [duplicate]

Solution 1:

You can install the latest source of XULRuner by executing:

sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
sudo apt-get update
sudo apt-get install xulrunner-2.0 xulrunner-2.0-dev xulrunner-2.0-gnome-support xulrunner-dev

Once installed you'll need to update-alternatives so it's used by default:

sudo update-alternatives --config xulrunner 

Be careful that this ppa also contains an updated version of firefox and thunderbird.

Solution 2:

You can actually run xulrunner apps without installing xulrunner, and just using firefox.

If you look on https://developer.mozilla.org/en/docs/XULRunner, it says:

Firefox 3 and later ships with a private XULRunner package, which can run any compatible XULRunner application using the -app switch.

So I just untarred the pencil .tar.gz distribution, navigated into the user/share/pencil (or whatever) directory, and did:

firefox -app application.ini

tada! No additional installations needed.