GtkMozEmbed set_comp_path (xulrunner)

Hey,

I’ve just compiled ruby-gnome2 (from cvs) against xulrunner’s
gtkmozembed library, and I’ve discovered that calling
Gtk::MozEmbed.set_profile_path(“/usr/lib/firefox/plugins”) – before the
constructor – causes some problem that prevents any page being loaded
by the widget. Even if the path given to set_comp_path is an empty
directory, it still doesn’t work. No errors are thrown.

I tried this on another machine with ruby-gnome2 compiled against
mozilla-gtkmozembed and that throws a segmentation fault.

P.S. Below is a short snippet that will replicate this problem. Does
anybody know what the problem is?

Regards,
Andy.

#!/usr/bin/env ruby

require ‘gtkmozembed’

Uncomment this line and no page will be loaded…

#Gtk::MozEmbed.set_comp_path(“/usr/lib/firefox/plugins”)
Gtk::MozEmbed.set_profile_path(ENV[‘HOME’] + ‘/.mozilla’, ‘RubyGecko’)

win = Gtk::Window.new
moz = Gtk::MozEmbed.new

win << moz
win.resize(780, 570)

puts “Trying…”
moz.load_url(“http://www.google.com/”)

win.signal_connect(“destroy”) { Gtk.main_quit }

win.show_all
Gtk.main


Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Hi Andy,

Andy wrote:

Hey,

I’ve just compiled ruby-gnome2 (from cvs) against xulrunner’s
gtkmozembed library, and I’ve discovered that calling
Gtk::MozEmbed.set_profile_path(“/usr/lib/firefox/plugins”) – before the
constructor – causes some problem that prevents any page being loaded
by the widget. Even if the path given to set_comp_path is an empty
directory, it still doesn’t work. No errors are thrown.

The comp_path is set at compile time following xulrunner settings, i
think
you should not call set_comp_path unless you have some good reason to do
so.

Are you sure that using firefox comp_path on a xulrunner compiled
gtk_moz_embed is safe and can be done?

–
Mirko M.


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV