mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-06-28 11:00:28 +12:00
Small fixes for Linux
This commit is contained in:
parent
689962b1fb
commit
6629f218d7
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue