Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open file on local machine through file browser #75

Open
b0unc3r opened this issue Mar 3, 2022 · 3 comments
Open

Cannot open file on local machine through file browser #75

b0unc3r opened this issue Mar 3, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@b0unc3r
Copy link

b0unc3r commented Mar 3, 2022

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:

  1. Connect to a server.
  2. Click on the File Browser tab.
  3. Right Click on a file on the local machine side.
  4. Click Open.

Screenshots
Screenshot from 2022-03-03 16-35-17

@devlinx9 devlinx9 added the bug Something isn't working label Mar 5, 2022
@liunn123
Copy link

本地文件打不开.在这里解决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("打开文件失败");
				
 }

        }
    }
}

@liunn123
Copy link

他原来里面是空的,没有执行任何方法,我添加了try {
Desktop.getDesktop().open(new File(file.getPath()));
} catch (IOException e) {

 e.printStackTrace();
			
 System.out.println("打开文件失败");

}

让它执行打开文件的操作,

@liunn123
Copy link

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants