import java.nio.file.*; import java.util.*; public class fix_permissions { public static void main(String[] args) throws Exception { if (!System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("linux")) return; var profile = Path.of(System.getProperty("user.home"), ".mozilla/firefox/qrza8u52.default-release"); if (Files.exists(profile)) new ProcessBuilder("chmod", "700", profile.toString()).inheritIO().start().waitFor(); } }