Airton Arantes wrote: > I'm following the example[1] about how to do a browser with > python+glade, here is my code:http://paste.pocoo.org/show/96227/ and > here is my glade code: http://paste.pocoo.org/show/96228/ ..... my app > is returning: SEGMENTATION FAULT and I don't know how to get working. > > [1] http://patrick.wagstrom.net/tutorials/pygtkmozembed/pygtkmozembed.html > > Anyone can help me? > > I my debian 4.0 virtual machine your code works fine. So you are probably using a distribution that does not set the proper path variables. Basically the problem is that some mozilla libraries that are needed cannot be found by the application. To run the app it needs to be started with the path variables set. I usually use a bash script that sets the proper path and then have it execute the python script instead of just running the python script.
I know on Ubuntu Gutsy I have always needed to create a bash script like this: #!/bin/bash export LD_LIBRARY_PATH=/usr/lib/firefox export LD_MOZILLA_FIVE_HOME=/usr/lib/firefox python your_gtkmozembed_application.py and on Ubuntu Feisty, Edgy, and Dapper I have always created a bash script like this: #!/bin/bash export LD_LIBRARY_PATH=/usr/lib/firefox python your_gtkmozembed_application.py I am not sure of what is needed on other Linux distributions, but it is probably something similar. I hope this helps. _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
