Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sun.awt.X11.XDesktopPeer
- private void launch(URI uri) throws IOException {
- byte[] uriByteArray = ( uri.toString() + '\0' ).getBytes();
- boolean result = false;
- XToolkit.awtLock();
- try {
- if (!nativeLibraryLoaded) {
- throw new IOException("Failed to load native libraries.");
- }
- result = gnome_url_show(uriByteArray); //bug is here
- } finally {
- XToolkit.awtUnlock();
- }
- if (!result) {
- throw new IOException("Failed to show URI:" + uri);
- }
- }
- https://github.com/JetBrains/jdk8u_jdk/blob/master/src/solaris/classes/sun/awt/X11/XDesktopPeer.java
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement