FS#5149 - Java/SWT apps can't find mozilla/firefox to use as internal browser
Attached to Project:
Arch Linux
Opened by asd asd (izaak) - Wednesday, 02 August 2006, 18:23 GMT
Last edited by Greg (dolby) - Tuesday, 17 June 2008, 19:29 GMT
Opened by asd asd (izaak) - Wednesday, 02 August 2006, 18:23 GMT
Last edited by Greg (dolby) - Tuesday, 17 June 2008, 19:29 GMT
|
Details
This applies to all Java/SWT applications which can make use
of an internal browser. IE: rssowl for viewing news articles
as HTML, or eclipse for viewing documentation, etc.
The trick is to set the following environment variables before running such applications: export MOZILLA_FIVE_HOME=/opt/mozilla/lib/firefox export LD_LIBRARY_PATH=${MOZILLA_FIVE_HOME} I don't know the correct way to integrate this into Arch Linux. However I think it's important, as it enriches the out-of-the-box experience for anyone using these applications. |
This task depends upon
!ENTRY org.eclipse.osgi 4 0 2006-08-10 15:20:45.584
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HO
ME not set)]
at org.eclipse.swt.SWT.error(SWT.java:3400)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:136)
IMO it's not good idea to install this file with jre, because not everyone have firefox as their browser. Maybe wiki page would be better. :-/
All C/C++ apps that link to mozilla libraries have the xulrunner library path linked into the binary. For java programs, this would mean a nice LD_LIBRARY_PATH environment setting from the script that launches these apps. As we have a launcher script for every java app anyways, these things would go into the launcher, not in a /etc/profile.d script.
Perhaps we could change firefox's installation path? I just don't see why we need to break all these other applications. (Sorry, I'm a little upset that I spent a day trying to figure out why an app was segfaulting, and MOZILLA_FIVE_HOME turned out to be the answer.)