(1) I can't figure out how I'm supposed to launch it from the command
line. When I try to do:
dist/bin/xulrunner /path/to/application.ini
I get a window that I can't put focus on.
Thanks to jhpedemonte for pointing out I need a .app file to launch
SeaMonkey, Firefox, etc. from the command line in order to access the
generated XUL window. Unfortunately I can't find an equivalent .app
file for XULRunner.
(2) When I did do:
dist/bin/xulrunner --install-app dist/xpi-stage/simple/application.ini
I did get a window I could focus on... specifically, an alert window
telling me it couldn't find content/hiddenWindow.xul . (I got the same
window for case 1, but I wanted to keep the problems separate.) A quick
LXR search shows versions of hiddenWindow for Sunbird, Firefox,
Thunderbird and SeaMonkey, but not for XULRunner. I'm wondering what
the purpose of hiddenWindow is, and what I'm supposed to put in place
for it.
Please advise. :)
You can create the .app file by running xulrunner-bin -install-app
/path/to/appdir or -install-app /path/to/app.zip
Unfortunately for you, in order for this .app to find your XULRunner, it
either needs to be installed in the correct location in /Library/Frameworks
or installed directly into your application bundle at
YourApp.app/Contents/Frameworks/XUL.framework. -install-app doesn't do this
automatically (yet)... you have to do it yourself manually. You can do it
with a symlink.
>
> (2) When I did do:
>
> dist/bin/xulrunner --install-app dist/xpi-stage/simple/application.ini
Don't do application.ini... just the directory
> I did get a window I could focus on... specifically, an alert window
> telling me it couldn't find content/hiddenWindow.xul . (I got the same
What did you need hiddenWindow for? We use hiddenWindow to display the menus
when there are no application windows open, but if your app doesn't provide
a hiddenwindow we have used reasonable defaults in the past.
--BDS
> What did you need hiddenWindow for? We use hiddenWindow to display the
> menus when there are no application windows open, but if your app
> doesn't provide a hiddenwindow we have used reasonable defaults in the
> past.
That's just it. I don't know why I need hiddenWindow. I didn't
specifically ask for it. This is Simple.app, which I didn't write and
haven't hacked. So far I've made no hacks to my local XULRunner, except
to add support for XPathGenerator - and that has nothing to do with this.
I found this message in console output:
Chrome file doesn't exist:
/Library/Frameworks/XUL.framework/Versions/1.9a1/chrome/toolkit/content/global/hiddenWindow.xul