mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-10-01 09:40:35 +13:00
Fix path lookup for applications
This commit is contained in:
parent
b995277e2e
commit
3bf0594920
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue