private static void checkPaths()

in src/main/resources/patch/Agreement.java [50:66]


    private static void checkPaths() {
        if (PathManager.getSystemPath().contains("/AppTranslocation/")) {
            String message = "Please use Finder to move the application to another location before launching.\n\n" +
                    "Since v10.12 macOS launches downloaded applications as read-only.\n" +
                    "Moving application to any other location lifts that restriction.";
            showMessage("App Translocation detected", message, false);
            System.exit(DIR_CHECK_FAILED);
        }

        if (!new File(PathManager.getSystemPath()).canWrite()) {
            String message = "Please copy the application to your system before launching.\n\n" +
                    "The application needs to write data, while DMG images are read-only.\n" +
                    "Copying the program to Applications or to Desktop lifts the restriction.";
            showMessage("Read-only filesystem detected", message, false);
            System.exit(DIR_CHECK_FAILED);
        }
    }