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.
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'): set_comp_ path('/ usr/lib/ xulrunner- 1.9')
gtkmozembed.
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.