mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-07-04 22:10:56 +12:00
Fix posix askpass
This commit is contained in:
parent
73131a3f0c
commit
0f306a5d50
|
@ -176,7 +176,13 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
|
||||||
var suffix = file.equals(pc.getShellDialect().getOpenCommand())
|
var suffix = file.equals(pc.getShellDialect().getOpenCommand())
|
||||||
? "\"\""
|
? "\"\""
|
||||||
: "\"" + file.replaceAll("\"", "\\\\\"") + "\"";
|
: "\"" + 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);
|
pc.executeSimpleCommand(cmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue