diff --git a/app/src/main/java/io/xpipe/app/core/check/AppHomebrewCoreutilsCheck.java b/app/src/main/java/io/xpipe/app/core/check/AppHomebrewCoreutilsCheck.java index 88db9a488..ec12429e4 100644 --- a/app/src/main/java/io/xpipe/app/core/check/AppHomebrewCoreutilsCheck.java +++ b/app/src/main/java/io/xpipe/app/core/check/AppHomebrewCoreutilsCheck.java @@ -1,30 +1,13 @@ package io.xpipe.app.core.check; -import io.xpipe.app.comp.base.MarkdownComp; -import io.xpipe.app.core.AppI18n; -import io.xpipe.app.core.AppProperties; -import io.xpipe.app.core.AppStyle; -import io.xpipe.app.core.mode.OperationMode; -import io.xpipe.app.core.window.AppWindowHelper; import io.xpipe.app.issue.ErrorEvent; -import io.xpipe.app.prefs.AppPrefs; -import io.xpipe.app.resources.AppResources; -import io.xpipe.app.util.PlatformState; -import io.xpipe.app.util.WindowsRegistry; import io.xpipe.core.process.OsType; -import javafx.geometry.Insets; -import javafx.scene.control.Alert; -import javafx.scene.control.ButtonBar; -import javafx.scene.control.ButtonType; -import lombok.Getter; -import java.nio.file.Files; -import java.util.Optional; import java.util.concurrent.TimeUnit; public class AppHomebrewCoreutilsCheck { - public static boolean getResult() { + public static boolean hasCoreutils() { var fc = new ProcessBuilder("which", "stat").redirectErrorStream(true); try { var proc = fc.start(); @@ -42,7 +25,7 @@ public class AppHomebrewCoreutilsCheck { return; } - if (!getResult()) { + if (hasCoreutils()) { ErrorEvent.fromMessage("You have the homebrew coreutils package installed and added to your PATH." + " The coreutils commands overwrite and are incompatible to the native macOS commands, which XPipe expects." + " Please remove the coreutils commands from your PATH prior to launching XPipe.")