From 0798c53762c56403e7a3979b35d4f32c7d5f74de Mon Sep 17 00:00:00 2001 From: Christopher Schnick Date: Fri, 16 Dec 2022 13:09:07 +0100 Subject: [PATCH] Fix custom daemon start up --- beacon/src/main/java/io/xpipe/beacon/BeaconServer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon/src/main/java/io/xpipe/beacon/BeaconServer.java b/beacon/src/main/java/io/xpipe/beacon/BeaconServer.java index 214d50c7d..e52b46822 100644 --- a/beacon/src/main/java/io/xpipe/beacon/BeaconServer.java +++ b/beacon/src/main/java/io/xpipe/beacon/BeaconServer.java @@ -31,7 +31,8 @@ public class BeaconServer { var custom = BeaconConfig.getCustomDaemonCommand(); if (custom != null) { var command = - custom + " " + (BeaconConfig.getDaemonArguments() != null ? BeaconConfig.getDaemonArguments() : ""); + ShellTypes.getPlatformDefault().executeCommandWithShell( + custom + (BeaconConfig.getDaemonArguments() != null ? " " + BeaconConfig.getDaemonArguments() : "")); Process process = Runtime.getRuntime().exec(command); printDaemonOutput(process, command); return process;