void (String destPath) { if (Utils.IS_MAC) { try { String applicationPath = destPath.contains("/Contents") ? destPath.substring(0, destPath.lastIndexOf("/Contents")) : destPath; LOG.info("refreshApplicationIcon for: " + applicationPath); Runtime runtime = Runtime.getRuntime(); String[] args = {"touch", applicationPath}; runtime.exec(args); } catch (IOException e) { LOG.log(Level.WARNING, "refreshApplicationIcon failed", e); } } }