mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-23 00:45:35 +00:00
Small fixes
This commit is contained in:
@@ -163,6 +163,12 @@ public class ShellView {
|
||||
cmd.executeAndCheck();
|
||||
}
|
||||
|
||||
public void unsetEnvironmentVariable(String name) throws Exception {
|
||||
shellControl
|
||||
.command(shellControl.getShellDialect().unsetEnvironmentVariableCommand(name))
|
||||
.executeAndCheck();
|
||||
}
|
||||
|
||||
public String getEnvironmentVariable(String name) throws Exception {
|
||||
return shellControl
|
||||
.command(shellControl.getShellDialect().getPrintEnvironmentVariableCommand(name))
|
||||
|
||||
@@ -22,6 +22,7 @@ public class BitwardenPasswordManager implements PasswordManager {
|
||||
if (SHELL == null) {
|
||||
SHELL = ProcessControlProvider.get().createLocalProcessControl(true);
|
||||
SHELL.start();
|
||||
SHELL.view().unsetEnvironmentVariable("BW_SESSION");
|
||||
SHELL.view()
|
||||
.setEnvironmentVariable(
|
||||
"BITWARDENCLI_APPDATA_DIR", AppCache.getBasePath().toString());
|
||||
|
||||
+5
-1
@@ -41,7 +41,11 @@ public class OtherExternalAgentStrategy implements SshIdentityStrategy {
|
||||
String publicKey;
|
||||
|
||||
@Override
|
||||
public void prepareParent(ShellControl parent) {}
|
||||
public void prepareParent(ShellControl parent) throws Exception {
|
||||
if (parent.isLocal()) {
|
||||
SshIdentityStateManager.prepareLocalExternalAgent();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void buildCommand(CommandBuilder builder) {}
|
||||
|
||||
Reference in New Issue
Block a user