The following two lines of code should safely sort any gtkmozembed python 
program when running with xul-runner. It should not be necessary to modify any 
environment variables such as MOZILLA_HOME_FIVE, MOZILLA_HOME, or 
LD_LIBRARY_PATH - although obviously it the example path only works for the 
indicated version of xul-runner:


if os.path.exists('/usr/lib/xulrunner-1.9'):
        gtkmozembed.set_comp_path('/usr/lib/xulrunner-1.9')


That should be all that is necessary, and it should still be safe to
execute on legacy systems.

I run it immediately after importing the gtkmozembed module, prior to
displaying the main window.

And just FYI, I've never ran into problems with multi-threaded
gtkmozembed components when displaying Flash.

-- 
gtkmozembed crashs with python
https://bugs.launchpad.net/bugs/26436
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to