Skip to content

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.

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