From 0f306a5d506fd4f717b650e62207dd3af87a18cb Mon Sep 17 00:00:00 2001 From: crschnick Date: Thu, 20 Apr 2023 07:06:13 +0000 Subject: [PATCH] Fix posix askpass --- .../java/io/xpipe/app/prefs/ExternalTerminalType.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/xpipe/app/prefs/ExternalTerminalType.java b/app/src/main/java/io/xpipe/app/prefs/ExternalTerminalType.java index 8291534b8..70e01150c 100644 --- a/app/src/main/java/io/xpipe/app/prefs/ExternalTerminalType.java +++ b/app/src/main/java/io/xpipe/app/prefs/ExternalTerminalType.java @@ -176,7 +176,13 @@ public interface ExternalTerminalType extends PrefsChoiceValue { var suffix = file.equals(pc.getShellDialect().getOpenCommand()) ? "\"\"" : "\"" + file.replaceAll("\"", "\\\\\"") + "\""; - var cmd = "osascript -e 'tell app \"" + "Terminal" + "\" to do script " + suffix + "'"; + var cmd = String.format( + """ + osascript - "$@" <