I am trying to create a XUL "Hello World" application on Mac OS X. I download XULRunner from here , then this tutorial , then this tutorial , and then this tutorial ... Nothing worked. So, I looked at it better and found this section , the instructions of which I followed. Unfortunately, it does not work yet. I can even run the application with the command
/Library/Frameworks/XUL.framework/xulrunner-bin $PWD/application.ini
However, the window does not appear and the error does not print. This happens when I try to launch the application using firefox -apptoo.
What could be wrong? Also, does anyone know which tutorial will work? That would be an acceptable answer :)
Thanks in advance!
File contents
File contents application.ini:
[App]
Vendor=Me
Name=Zull
Version=1.0
BuildID=31052011
ID=zull-xul@zull.com
[Gecko]
MinVersion=2.0
MaxVersion=2.*
Content chrome/chrome.manifest:
content zull file:content/
Content chrome/content/main.xul:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="main" title="My App" width="300" height="300"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<caption label="Hello World"/>
</window>
Finally, the content defaults/preferences/prefs.js:
pref("toolkit.defaultChromeURI", "chrome://zull/content/main.xul");