Fix path lookup for applications

This commit is contained in:
crschnick 2023-08-12 17:26:01 +00:00
parent b995277e2e
commit 3bf0594920
2 changed files with 2 additions and 2 deletions

View file

@ -123,7 +123,7 @@ public abstract class ExternalApplicationType implements PrefsChoiceValue {
protected Optional<Path> determineFromPath() {
// Try to locate if it is in the Path
try (var cc = LocalStore.getShell()
.command(ShellDialects.getPlatformDefault().getWhichCommand("code.cmd"))
.command(ShellDialects.getPlatformDefault().getWhichCommand(executable))
.start()) {
var out = cc.readStdoutDiscardErr();
var exit = cc.getExitCode();

View file

@ -125,7 +125,7 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
protected abstract String createCommand(ShellControl shellControl, String name, String path, String file);
}
ExternalTerminalType TABBY_WINDOWS = new WindowsType("app.tabbyWindows", "tabby") {
ExternalTerminalType TABBY_WINDOWS = new WindowsType("app.tabbyWindows", "Tabby") {
@Override
protected String createCommand(ShellControl shellControl, String name, String path, String file) {