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 a140d9c9..b3054409 100644 --- a/app/src/main/java/io/xpipe/app/prefs/ExternalTerminalType.java +++ b/app/src/main/java/io/xpipe/app/prefs/ExternalTerminalType.java @@ -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; } diff --git a/core/src/main/java/io/xpipe/core/util/Deobfuscator.java b/core/src/main/java/io/xpipe/core/util/Deobfuscator.java index 804975f4..a41fa153 100644 --- a/core/src/main/java/io/xpipe/core/util/Deobfuscator.java +++ b/core/src/main/java/io/xpipe/core/util/Deobfuscator.java @@ -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; } } diff --git a/dist/debug/linux/xpiped_debug.sh b/dist/debug/linux/xpiped_debug.sh index 359e3634..51f36c95 100644 --- a/dist/debug/linux/xpiped_debug.sh +++ b/dist/debug/linux/xpiped_debug.sh @@ -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" "$@"