Skip to content

Commit efe75a7

Browse files
committed
Change user name query
1 parent c2e5e0f commit efe75a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/io/xpipe/app/browser/OpenFileSystemCache.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void set(String key, Object value) {
3232
public void init() throws Exception {
3333
ShellControl sc = model.getFileSystem().getShell().get();
3434
ShellDialect d = sc.getShellDialect();
35-
username = sc.executeSimpleStringCommand(d.getPrintVariableCommand(d.getUsernameVariableName()));
35+
username = d.printUsernameCommand(sc).readStdoutOrThrow();
3636
}
3737

3838
public boolean isRoot() {

core/src/main/java/io/xpipe/core/process/ShellDialect.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ default String getOrConcatenationOperator() {
137137

138138
String getPrintVariableCommand(String name);
139139

140-
String getUsernameVariableName();
140+
CommandControl printUsernameCommand(ShellControl shellControl);
141141

142142
String getPrintExitCodeCommand(String prefix, String suffix);
143143

0 commit comments

Comments
 (0)