Small fixes

This commit is contained in:
crschnick 2023-02-20 17:18:11 +00:00
parent aa95c746b9
commit 3b3f238b68
3 changed files with 4 additions and 4 deletions

View file

@ -152,7 +152,8 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
@Override
public void launch(String name, String command) throws Exception {
var custom = AppPrefs.get().customTerminalCommand().getValue();
if (custom == null || custom.trim().isEmpty()) {
if (custom == null || custom.isBlank()) {
ErrorEvent.fromMessage("No custom terminal command specified").reportable(false).handle();
return;
}

View file

@ -2,7 +2,6 @@ package io.xpipe.core.util;
import io.xpipe.core.charsetter.NewLine;
import io.xpipe.core.process.OsType;
import io.xpipe.core.process.ShellDialects;
import java.io.PrintWriter;
import java.io.StringWriter;
@ -104,7 +103,6 @@ public class Deobfuscator {
return false;
}
var t = ShellDialects.getPlatformDefault();
return true;
}
}

View file

@ -2,5 +2,6 @@
DIR="${0%/*}"
EXTRA_ARGS=(JVM-ARGS)
export CDS_JVM_OPTS="${EXTRA_ARGS[*]}"
"$DIR/../lib/runtime/bin/xpiped" "${EXTRA_ARGS[@]}" "$@"
"$DIR/../lib/runtime/bin/xpiped" "$@"