mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Fix posix askpass
This commit is contained in:
parent
73131a3f0c
commit
0f306a5d50
1 changed files with 7 additions and 1 deletions
|
@ -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 - "$@" <<EOF
|
||||
activate application "Terminal"
|
||||
tell app "Terminal" to do script %s
|
||||
EOF""",
|
||||
suffix);
|
||||
pc.executeSimpleCommand(cmd);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue