mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-07-02 21:11:03 +12:00
Fix path lookup for applications
This commit is contained in:
parent
b995277e2e
commit
3bf0594920
|
@ -123,7 +123,7 @@ public abstract class ExternalApplicationType implements PrefsChoiceValue {
|
||||||
protected Optional<Path> determineFromPath() {
|
protected Optional<Path> determineFromPath() {
|
||||||
// Try to locate if it is in the Path
|
// Try to locate if it is in the Path
|
||||||
try (var cc = LocalStore.getShell()
|
try (var cc = LocalStore.getShell()
|
||||||
.command(ShellDialects.getPlatformDefault().getWhichCommand("code.cmd"))
|
.command(ShellDialects.getPlatformDefault().getWhichCommand(executable))
|
||||||
.start()) {
|
.start()) {
|
||||||
var out = cc.readStdoutDiscardErr();
|
var out = cc.readStdoutDiscardErr();
|
||||||
var exit = cc.getExitCode();
|
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);
|
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
|
@Override
|
||||||
protected String createCommand(ShellControl shellControl, String name, String path, String file) {
|
protected String createCommand(ShellControl shellControl, String name, String path, String file) {
|
||||||
|
|
Loading…
Reference in a new issue