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

make open_cmd configurable #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gauteh
Copy link

@gauteh gauteh commented Mar 31, 2020

No description provided.

Copy link
Owner

@rabite0 rabite0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I suggested a small change, but otherwise I'd be happy to merge this.

@@ -385,7 +385,13 @@ impl FileBrowser {
self.core.get_sender().send(Events::InputEnabled(false))?;
self.core.screen.suspend().log();

let status = std::process::Command::new("xdg-open")
let cmd = self.core
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove the calls to clone here. If it complains about lifetimes you can do it like this:

let config = self.core
                .config.read()?
                .get()?;

Command::new(&config.open_cmd)

@rabite0 rabite0 linked an issue May 28, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MacOS open instead of xdg-open
2 participants