The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Gibbering Terrors

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Christopher Cyll

Posts: 49
Nickname: topher
Registered: Jan, 2006

Topher Cyll is Rubyist and writer in Portland, Oregon.
Gibbering Terrors Posted: Aug 1, 2006 12:48 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Christopher Cyll.
Original Post: Gibbering Terrors
Feed Title: Topher Cyll
Feed URL: http://feeds.feedburner.com/cyll
Feed Description: I'm not too worried about it. Ruby and programming languages.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Christopher Cyll
Latest Posts From Topher Cyll

Advertisement
Every so often, I try to tangle with Mozilla. I mean like writing a XUL page, building a Firefox extension, or most lately, trying to write a XULRunner app.

Mozilla is seriously complicated and very difficult to debug. Thankfully, the documentation is at getting somewhat better. I thought I'd do my part and record some of what I figured out about building XULRunner apps.

First of all, if you have a Mac, you're in for a bit of a surprise. You can't use the standard "xulrunner someapp/application.ini" or "xulrunner someapp.zip" invocation.

Macs need to have the apps bundled first. Unfortunately, the bundling process is quite tricky and made even worse by the fact that there are no error messages when you screw up. The key is to do this exactly like this (you can get the clock demo here):

$ /Library/Frameworks/XUL.framework/Versions/Current/xulrunner-bin --install-app clock .

This will generate a clock.app for you. Why is this tricky? Well, you typically launch a xulrunner app by specifying either a zip file or an application.ini file. Both of these will fail silently with --install-app. You need to specify the folder that contains the application.ini for it to work. I finally figured this out by reading this thread.

Also note, XULRunner does not appear to overwrite old apps (again, silently), so make sure and delete before each rebuild.

That's all for tonight, more about XUL later.

Read: Gibbering Terrors

Topic: Ruby on Rails View Testing with Style! Previous Topic   Next Topic Topic: Announcing ... rela.tv!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use