mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-03 11:20:34 +00:00
Fix NPE with powershell async application launch
This commit is contained in:
@@ -201,7 +201,10 @@ public interface ExternalApplicationType extends PrefsValue {
|
||||
|
||||
default void launch(CommandBuilder builder) throws Exception {
|
||||
var location = findExecutable();
|
||||
builder.add(0, sc -> sc.getShellDialect().fileArgument(location.toString()));
|
||||
builder.add(0, sc -> {
|
||||
return sc != null ? sc.getShellDialect().fileArgument(location.toString())
|
||||
: "\"" + location + "\"";
|
||||
});
|
||||
if (detach()) {
|
||||
ExternalApplicationHelper.startAsync(builder);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user