fix(clipboard): wl-copy mimetype should be png

Closes #68
This commit is contained in:
Jeremy Attali 2020-12-01 19:42:23 -05:00 committed by Jeremy Attali
parent b4be847635
commit a931acb2cf

View File

@ -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.");