Running the Application
With the application details now setup, it is time to create the prepare the executable which will launch the application.
Windows and Linux
Copy the xulrunner stub to the main application directory and rename it to contain your own application name. When run, this application executable is the one you will see in the operating system's Process/Task Manager.
$ cp xulrunner/xulrunner-stub pyxpcom_gui_app
Now all we need do to start the application is to launch it:
$ ./pyxpcom_gui_app
Mac OS X
Copy across the XULRunner application executable:
$ cd pyxpcom_gui.app/Contents
$ cp Frameworks/XUL.framework/xulrunner MacOS/xulrunner
Copy across the process information file
Info.plist.
This file, along with the application.ini are used to set
the process name details for when the application is run.
$ cd pyxpcom_gui.app/Contents
$ cp Resources/installer/MacOSX/Info.plist .
Now all we need do to start the application is to launch it:
$ ./MacOS/xulrunner
If all goes to plan, you should now see a new application window showing the Python home page and you'll notice the File and Help menus for your application. So, what is controlling this UI layout and how do you change it to suit your own application needs?