mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-10-01 17:47:30 +13:00
Small fixes for Linux
This commit is contained in:
parent
689962b1fb
commit
6629f218d7
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue