static public boolean openFile(Object obj) {
        File f = coerceFile(obj);
        if (f == null) {
            return false;
        } else if (WIN && f.isDirectory()) {
            try {
                Process proc = Runtime.getRuntime().exec("explorer /root," + f.getAbsolutePath());
                try {
                    proc.waitFor();
                } catch (InterruptedException stfu) {
                }
                return true;
            } catch (IOException err) {
                return false;
            }
        } else {
            try {
                Desktop.getDesktop().open(f);
                return true;
            } catch (Exception err) {
                return false;
            }
        }
    }