Search code examples
xulxulrunner

XUL standalone application not starting


I recently took on a project built on XUL (standalone, using xulrunner) - However I can't get it to properly run. I'm getting this error when I attempt to start it using the command line (xulrunner.exe ../application.ini -jsconsole):

No chrome package registered for chrome://case_scenario_builder/content/case_scenario_builder.xul

The chrome.manifest file looks like this:

content case_scenario_builder file:chrome/case_scenario_builder/content/ contentaccessible=yes
content jslib jar:chrome/jslib.jar!/ 
skin case_scenario_builder skin file:chrome/case_scenario_builder/skin/
locale case_scenario_builder en-US chrome/case_scenario_builder/locale/en-US/

Any ideas on where I could start debugging?


Solution

  • I guess your manifest just isn't getting loaded. To test that I'd introduce an intentional syntax error and check the error console. E.g. if you put

    asdfasd
    

    on its own line, you should get a Warning: Ignoring unrecognized chrome manifest directive 'asdfasd'. in the Error console.

    (Note to other experts: initially I wanted to suggest dropping 'file:' prefix and avoiding underscores in the package name, but I tested it on a Firefox nightly, and it works fine.)