mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-07-07 15:25:55 +12:00
Fix application launch debug output
This commit is contained in:
parent
e9982b4903
commit
5cfe1eddfd
|
@ -10,12 +10,11 @@ import java.util.function.Function;
|
||||||
public class ApplicationHelper {
|
public class ApplicationHelper {
|
||||||
|
|
||||||
public static void executeLocalApplication(Function<ShellControl, String> s, boolean detach) throws Exception {
|
public static void executeLocalApplication(Function<ShellControl, String> s, boolean detach) throws Exception {
|
||||||
TrackEvent.withDebug("proc", "Executing local application")
|
|
||||||
.tag("command", s)
|
|
||||||
.handle();
|
|
||||||
|
|
||||||
try (var sc = LocalStore.getShell().start()) {
|
try (var sc = LocalStore.getShell().start()) {
|
||||||
var cmd = detach ? ScriptHelper.createDetachCommand(sc, s.apply(sc)) : s.apply(sc);
|
var cmd = detach ? ScriptHelper.createDetachCommand(sc, s.apply(sc)) : s.apply(sc);
|
||||||
|
TrackEvent.withDebug("proc", "Executing local application")
|
||||||
|
.tag("command", cmd)
|
||||||
|
.handle();
|
||||||
try (var c = sc.command(cmd).start()) {
|
try (var c = sc.command(cmd).start()) {
|
||||||
c.discardOrThrow();
|
c.discardOrThrow();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue