Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xulrunner-bin on the Mac doesn't do anything

62 views
Skip to first unread message

Trent Larson

unread,
Oct 1, 2011, 6:39:27 PM10/1/11
to


I get absolutely no output when I run the following:
/Library/Frameworks/XUL.framework/xulrunner-bin ~/dl/sample-app/
application.ini

It runs fine when I run Firefox on it (after I edited the MaxVersion
to 9.*):
/Applications/Firefox.app/Contents/MacOS/firefox -app ~/dl/sample-app/
application.ini

But I really want to create my application on the Mozilla platform for
distribution, so I'd like to get XULRunner working.

How I got here: I installed the XULRunner 7.0.1 binary from the
releases:
http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/

Then I downloaded the sample app from the bottom of this page:
https://developer.mozilla.org/en/Getting_started_with_XULRunner

I've tried:
- running it as root
- running the '--install-app'
- getting a previous version, but I can't: I remove the XUL.framework
and download a previous version, but it won't install because it still
believes my original exists

Any ideas are welcome. Thanks!

Neil

unread,
Oct 5, 2011, 3:29:08 PM10/5/11
to
Trent Larson wrote:

>I've tried:
>- running it as root
>- running the '--install-app'
>
>
My understanding is that you have to first --install-app to create the
app, and then use open (or open it from the Finder rather than the
command line).

--
Warning: May contain traces of nuts.

Michael Hofer

unread,
Oct 10, 2011, 10:12:52 AM10/10/11
to dev-te...@lists.mozilla.org
Hello Trent,

Am 02.10.11 00:39, schrieb Trent Larson:
> I've tried:
[...]
> - getting a previous version, but I can't: I remove the XUL.framework
> and download a previous version, but it won't install because it still
> believes my original exists

To try it with an older version, after removing the old version, also
delete /var/db/receipts/org.mozilla.xulrunner.*

Now the installer of the previous version should work again.

regards,
Michael

Michael Hofer

unread,
Oct 10, 2011, 10:12:30 AM10/10/11
to dev-te...@lists.mozilla.org
Am 02.10.11 00:39, schrieb Trent Larson:
> I get absolutely no output when I run the following:
> /Library/Frameworks/XUL.framework/xulrunner-bin ~/dl/sample-app/
> application.ini
>
> I've tried:
> - running it as root
> - running the '--install-app'

You can also try starting it with '-jsconsole' parameter appended. That
should open an additional window with useful debugging information.

As Neil stated, you need to do install-app before starting. This should
work:

1) /Library/Frameworks/XUL.framework/xulrunner-bin --install-app
/full_path_to_your_app
(where full_path_to_your_app points to the directory containing the
application.ini in your development source)

2) Different ways of starting your app (please give feedback which work
for you):

a) /Applications/XULTest/MyTestApp.app/Contents/MacOS/xulrunner
-jsconsole -purgecaches
(where 'XULTest' is the Vendor and 'MyTestApp' ist the Name as specified
in your application.ini)

b) /Library/Frameworks/XUL.framework/xulrunner-bin
"/Applications/XULTest/MyTestApp.app/Contents/Resources/application.ini"

When that works, you can replace the
'/Applications/XULTest/MyTestApp.app/Contents/Resources' directory with
a symlink to 'full_path_to_your_app' for rapid development without
reinstalling.

regards,
Michael
0 new messages