Create a base folder to work in

sh:~$ mkdir xul

Get XULRunner

sh:location_of_downloaded_xulrunner$ tar zxvf xulrunner-1.8.0.1.en-US.linux-i686.tar.gz

sh:~$ cp -r location_of_downloaded_xulrunner/xulrunner ~/xul/xulrunner

Get the Flash plugins

sh:location_of_downloaded_flash_installer$tar zxvf install_flash_player_7_linux.tar.gz

Install the Flash plugins

sh:~$cp -r location_of_downloaded_flash_installer/flashplayer.xpt ~/xul/xulrunner/plugins/flashplayer.xpt

sh:~$cp -r location_of_downloaded_flash_installer/libflashplayer.so ~/xul/xulrunner/plugins/libflashplayer.so

Create application directory skeleton
xul
test
chrome
content
test
defaults
preferences
xulrunner

sh:~$ mkdir -p ~/xul/test/chrome/content/test

sh:~$ mkdir -p ~/xul/test/defaults/preferences

Create application files

#!/bin/sh
PATH=$PATH:$(pwd)/../xulrunner xulrunner application.ini

[App]
Vendor=companyname
Name=test
Version=0.1
BuildID=20060220
Copyright=Nonsense
ID=somespecialidprobablyrelatedtosomekindofsubversioninfo

[Gecko]
MinVersion=1.8
MaxVersion=1.8

content test file:content/test/

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window
	title="Test"
	xmlns:html="http://www.w3.org/1999/xhtml"
	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
	style="width:750px;height:550px;margin:0px;padding:0px;"> 
  <html:embed src="app.swf" width="750" height="550"/>
</window>

pref(“toolkit.defaultChromeURI”,”chrome:test/content/start.xul”); == Wrap up == * You'll need to place your SWF file in the ~/xul/test/chrome/content/test folder. * You might need to tweak the width and height settings of the XULRunner window as well as the attributes on the html:embed tag in the start.xul file to fit your application * Make sure that the name of the main SWF matches the file referenced in the src attribute of the html:embed tag * Make sure the runapp.sh file is executable sh:~$chmod u+x ~/xul/test/runapp.sh == Executing your application == * Run the 'runapp.sh' executable script file from the test folder and enjoy!! sh:~$cd ~/xul/test sh:~$./runapp.sh''