Skip to content

Commit

Permalink
fix(clipboard): wl-copy mimetype should be png
Browse files Browse the repository at this point in the history
Closes #68
  • Loading branch information
jtheoof committed Dec 2, 2020
1 parent b4be847 commit a931acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clipboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static gboolean send_pixbuf_to_wl_copy(gdk_pixbuf_t *pixbuf) {
close(pipefd[1]);
dup2(pipefd[0], STDIN_FILENO);
close(pipefd[0]);
execlp("wl-copy", "wl-copy", NULL);
execlp("wl-copy", "wl-copy", "-t", "image/png", NULL);
g_warning(
"Unable to copy contents to clipboard. Please make sure you have "
"`wl-clipboard`, `xclip`, or `xsel` installed.");
Expand Down

0 comments on commit a931acb

Please sign in to comment.