Small fixes for Linux

This commit is contained in:
crschnick 2023-02-22 14:50:24 +00:00
parent 689962b1fb
commit 6629f218d7
2 changed files with 3 additions and 3 deletions

View file

@ -72,7 +72,7 @@ final class FileContextMenu extends ContextMenu {
ThreadHelper.runFailableAsync(() -> {
ShellProcessControl pc =
model.getFileSystem().getShell().orElseThrow();
pc.executeSimpleCommand(pc.getShellDialect().getMakeExecutableCommand(entry.getPath()));
pc.executeBooleanSimpleCommand(pc.getShellDialect().getMakeExecutableCommand(entry.getPath()));
var cmd = pc.command("\"" + entry.getPath() + "\"").prepareTerminalOpen();
TerminalHelper.open(FilenameUtils.getBaseName(entry.getPath()), cmd);
});
@ -85,7 +85,7 @@ final class FileContextMenu extends ContextMenu {
ThreadHelper.runFailableAsync(() -> {
ShellProcessControl pc =
model.getFileSystem().getShell().orElseThrow();
pc.executeSimpleCommand(pc.getShellDialect().getMakeExecutableCommand(entry.getPath()));
pc.executeBooleanSimpleCommand(pc.getShellDialect().getMakeExecutableCommand(entry.getPath()));
var cmd = ScriptHelper.createDetachCommand(pc, "\"" + entry.getPath() + "\"");
pc.executeBooleanSimpleCommand(cmd);
});

View file

@ -234,7 +234,7 @@ final class FileListComp extends AnchorPane {
return row;
});
fileList.getShown().addListener((observable, oldValue, newValue) -> {
SimpleChangeListener.apply(fileList.getShown(), (newValue) -> {
PlatformThread.runLaterIfNeeded(() -> {
table.getItems().setAll(newValue);
if (newValue.size() > 0) {