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

View file

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