public static void openFolderOld(File file) {
    try {
      String folder = file.getAbsolutePath();
      if (Base.isWindows()) {
        Runtime.getRuntime().exec("explorer \"" + folder + "\"");
      } 
      else if (Base.isMacOS()) {
        String launcher = Preferences.get("launcher.macosx");
        if (launcher != null) {
          Runtime.getRuntime().exec(new String[] { launcher, folder });
        }
      } 
      else if (Base.isLinux()) {
        String launcher = Preferences.get("launcher.linux");
        if (launcher != null) {
          Runtime.getRuntime().exec(new String[] { launcher, folder });
        }
      }
    } 
    catch (IOException e) {
      e.printStackTrace();
    }
  }