From 1930514efb78cbba274f8285d04df1fcaeee2e1b Mon Sep 17 00:00:00 2001 From: yory8 <> Date: Wed, 17 Jul 2019 09:55:09 +0200 Subject: [PATCH] fix: only accept text content (revert 2d7d64c) --- demon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demon.go b/demon.go index 9554a32..b977fe0 100644 --- a/demon.go +++ b/demon.go @@ -44,7 +44,7 @@ func filter(history []string, text string) []string { func listen(history []string, histfile string, persist bool, max int) { for { - t, err := exec.Command("wl-paste", "-n").CombinedOutput() + t, err := exec.Command("wl-paste", "-n", "-t", "text").CombinedOutput() if err != nil { // wl-paste exits 1 if there's no selection (e.g., when running it at OS startup) if string(t) != "No selection\n" {