From 3ead0c54459bceb4cfb453262c3657bedc59d5f4 Mon Sep 17 00:00:00 2001 From: sk89q Date: Thu, 9 Jan 2014 10:29:19 -0800 Subject: [PATCH] Fixed directory opening. --- src/main/java/com/skcraft/launcher/swing/SwingHelper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/skcraft/launcher/swing/SwingHelper.java b/src/main/java/com/skcraft/launcher/swing/SwingHelper.java index 2d1a2ad..7779d62 100644 --- a/src/main/java/com/skcraft/launcher/swing/SwingHelper.java +++ b/src/main/java/com/skcraft/launcher/swing/SwingHelper.java @@ -67,11 +67,10 @@ public final class SwingHelper { public static void browseDir(File file, Component component) { try { - Desktop.getDesktop().browse(new URL("file://" + file.getAbsolutePath()).toURI()); + Desktop.getDesktop().open(file); } catch (IOException e) { JOptionPane.showMessageDialog(component, _("errors.openDirError", file.getAbsolutePath()), _("errorTitle"), JOptionPane.ERROR_MESSAGE); - } catch (URISyntaxException e) { } }