Skip to content

Use helper binary for clipboard access (#262) #324

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

Merged
merged 1 commit into from
Oct 10, 2020

Conversation

cruessler
Copy link
Collaborator

Use clip on Windows, pbcopy on MacOX, xclip on Linux.

Remove dependency on clipboard.

Closes #262.

#[cfg(feature = "clipboard")]
pub fn copy_string(string: String) -> Result<()> {
fn execute_copy_command(
command: &mut Command,
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can take full ownership of command here.

@cruessler cruessler force-pushed the shell-out-for-clipboard branch 3 times, most recently from e18c46b to ee6a377 Compare October 10, 2020 17:21
Use `clip` on Windows, `pbcopy` on MacOX, `xclip` on Linux.

- Remove dependency on `clipboard`
- Remove feature `clipboard`
@cruessler cruessler force-pushed the shell-out-for-clipboard branch from ee6a377 to ea5985a Compare October 10, 2020 17:26
@extrawurst extrawurst merged commit 04bd45e into gitui-org:master Oct 10, 2020
@cruessler cruessler deleted the shell-out-for-clipboard branch October 11, 2020 05:43
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.

enable clipboard support on linux again
2 participants