<AWT Dev> [8] Review request for JDK-8029263, , The user's default browser can not launch after we click the button, and there is an IOException shown in the log txt (java.io.IOException)

Alexander Zvegintsev alexander.zvegintsev at oracle.com
Thu Dec 12 09:03:56 PST 2013


Hello AWT team,

Please review fix
http://cr.openjdk.java.net/~azvegint/jdk/8/8029263/webrev.00/
for
https://bugs.openjdk.java.net/browse/JDK-8029263

This issue can be observed on Solaris 11 (sparcv9 or x86_64).

gtk_show_uri() documentation[1] says:
> The uri must be of a form understood by GIO (i.e. you need to install 
> gvfs to get support for uri schemes such as http:// or ftp://, as only 
> local files are handled by GIO itself).
However it looks like that Solaris 11 supports gvfs for 32-bit 
applications only by default. gtk_show_uri() returns "Operation not 
supported" error message  for 64-bit applications
for schemes other than file://.

Since b110 we don't have 32-bit JDK for Solaris anymore, so in most 
cases only an OPEN action is available(file://).

Currently I am unable to find any robust way to determine do we have 
full gvfs support to handle URIs like mail:, http:// or not.

We can use g_vfs_get_supported_uri_schemes()[2] and assume that we have 
full gvfs support if  http:// scheme is present.
But this function depends on a DBUS_SESSION_BUS_ADDRESS environment 
variable, which can be stripped off in some tests
(in this case only file:// scheme will be returned).


Old gnome_url_show() will not work  too due to lack of 64-bit 
libgnomevfs-2.0 library.



[1] 
https://developer.gnome.org/gtk2/stable/gtk2-Filesystem-utilities.html#gtk-show-uri
[2] 
https://developer.gnome.org/gio/stable/GVfs.html#g-vfs-get-supported-uri-schemes 


-- 
Thanks,

Alexander.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20131212/47dcced5/attachment.html 


More information about the awt-dev mailing list