Launching XULRunner 1.8.1.3 on a Mac
Ok. I started playing with XULRunner again, but this time on my Mac. I downloaded a Mac build; I went through the getting started page and reviewed the tutorial; I had my XUL application ready, and then started it up:
/Library/Frameworks/XUL.framework/xulrunner-bin application.ini
IT FAILED, ARG!!! The xulrunner-bin process launched and promptly exited, and I couldn’t find any debug information about why. I checked and double checked, but I didn’t find any problems with my super simple XUL application. I even purposely broke my sample XUL application to try to get an error message– but nothing.
SOLUTION: Out of a hunch, I followed the deployment instructions and packaged up a “MyApp.app” Mac application. I launched it from Finder– `open MyApp.app` also would’ve worked from the Terminal– and it worked like a charm. It’s kinda hackish to develop in MyApp.app/ subdirectories, but it works…
Posted in OpenSource, Technology
![[del.icio.us]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/digg.png)
![[Google]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/google.png)
![[StumbleUpon]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Windows Live]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://badpopcorn.com/blog/wp-content/plugins/bookmarkify/email.png)
Because of MacOS any application that wants to have UI has to be bundled. For ease of development you can symlink youapp.app/Contents/Resources to your development tree.
Comment by Benjamin Smedberg — June 14, 2007 @ 2:11 am
That explains it. And I’m symlinking away, thanks!
Comment by Ben — June 14, 2007 @ 7:59 am