diff --git a/app/src/main/java/io/xpipe/app/test/LocalExtensionTest.java b/app/src/main/java/io/xpipe/app/test/LocalExtensionTest.java index 52227d7df..b066f2e28 100644 --- a/app/src/main/java/io/xpipe/app/test/LocalExtensionTest.java +++ b/app/src/main/java/io/xpipe/app/test/LocalExtensionTest.java @@ -1,6 +1,7 @@ package io.xpipe.app.test; import io.xpipe.app.core.mode.OperationMode; +import io.xpipe.core.process.OsType; import lombok.SneakyThrows; import org.junit.jupiter.api.BeforeAll; @@ -13,6 +14,7 @@ public class LocalExtensionTest extends ExtensionTest { return; } - OperationMode.init(new String[0]); + var mode = OsType.getLocal().equals(OsType.WINDOWS) ? "tray" : "background"; + OperationMode.init(new String[] {"--mode", mode}); } } diff --git a/gradle/gradle_scripts/local_junit_suite.gradle b/gradle/gradle_scripts/local_junit_suite.gradle index 25dba4227..9b73f2b88 100644 --- a/gradle/gradle_scripts/local_junit_suite.gradle +++ b/gradle/gradle_scripts/local_junit_suite.gradle @@ -28,7 +28,6 @@ testing { systemProperty "io.xpipe.app.dataDir", "$projectDir/local/" systemProperty "io.xpipe.app.logLevel", "trace" systemProperty "io.xpipe.app.writeSysOut", "true" - systemProperty "io.xpipe.app.mode", "tray" } } }