[RFC] netx: fix missing space that causes showDocuement(URL) to fail
Omair Majid
omajid at redhat.com
Tue Jul 20 11:39:51 PDT 2010
Hi,
Netx provides a way to open a URL in the web browser using
XBasicService.showDocument(URL). Currently it fails to work because of a
missing space between the browser command (eg: /usr/bin/firefox) and the
URL (eg: www.google.ca). The attached patch attempts to fix this.
The problem can be replicated with the program at [1] which does nothing
when you enter a url and press enter. Running with -verbose shows:
call privileged method: showDocument
arg: http://www.google.ca
java.io.IOException: Cannot run program
"/usr/bin/firefoxhttp://www.google.ca": java.io.IOException: error=2, No
such file or directory.
Any objections to committing this?
Cheers,
Omair
[1] http://pscode.org/jws/basicserv.jnlp
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: icedtea6-jnlp-xbasicservice-command.patch
Url: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20100720/a24db80f/icedtea6-jnlp-xbasicservice-command.patch
More information about the distro-pkg-dev
mailing list