Open b0unc3r opened 2 years ago
本地文件打不开.在这里解决muon.app.ui.components.session.files.local.LocalMenuHandler.java 173 private void open() { FileInfo[] files = folderView.getSelectedFiles(); if (files.length == 1) { FileInfo file = files[0]; if (file.getType() == FileType.FileLink || file.getType() == FileType.File) { try { Desktop.getDesktop().open(new File(file.getPath())); } catch (IOException e) {
e.printStackTrace();
System.out.println("打开文件失败");
}
}
}
}
他原来里面是空的,没有执行任何方法,我添加了try { Desktop.getDesktop().open(new File(file.getPath())); } catch (IOException e) {
e.printStackTrace();
System.out.println("打开文件失败");
}
让它执行打开文件的操作,
Describe the bug In the File Browser tab, when you right click on a file on the local machine side and select Open it doesn't do anything. The file is not opened.
To Reproduce Steps to reproduce the behavior:
Screenshots