public static String getProxyLocation() throws IOException {
        String str2 = null;
        String str1 = System.getenv("X509_USER_PROXY");
        if (str1 == null) {
            str1 = System.getProperty("X509_USER_PROXY");
        }
        if (str1 != null) {
            return str1;
        }
        try {
            Process localProcess = Runtime.getRuntime().exec("id -u");
            BufferedReader localBufferedReader = new BufferedReader(
                    new InputStreamReader(localProcess.getInputStream()));
            str2 = localBufferedReader.readLine();
        } catch (IOException localIOException) {
        }
        if (str2 == null) {
            str2 = System.getProperty("user.name");
            if (str2 != null) {
                str2 = str2.toLowerCase();
            } else {
                str2 = "nousername";
            }
        }
        if (File.separator.equals("/")) {
            return "/tmp/x509up_u" + str2;
        }
        return System.getProperty("java.io.tmpdir") + File.separator
                + "x509up_u" + str2;
    }