Skip to content

Commit

Permalink
Merge pull request #514 from alyssais/wl-copy
Browse files Browse the repository at this point in the history
clipboard: add wl-copy support
  • Loading branch information
GPaulovics authored Sep 4, 2019
2 parents 2a70884 + 3fb46d0 commit 75bdb19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clipboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ void clipboard_open(void)
char *clipboard_command = getenv("LPASS_CLIPBOARD_COMMAND");
if (clipboard_command) {
exec_command(clipboard_command);
die("Unable to copy contents to clipboard. Please make sure you have `xclip`, `xsel`, `pbcopy`, or `putclip` installed.");
die("Unable to copy contents to clipboard. Please make sure you have `wl-clip`, `xclip`, `xsel`, `pbcopy`, or `putclip` installed.");
} else {
execlp("wl-copy", "wl-copy", NULL);
execlp("xclip", "xclip", "-selection", "clipboard", "-in", NULL);
execlp("xsel", "xsel", "--clipboard", "--input", NULL);
execlp("pbcopy", "pbcopy", NULL);
Expand Down

0 comments on commit 75bdb19

Please sign in to comment.