diff --git a/CHANGELOG.md b/CHANGELOG.md index a8edd3b..1e5f309 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ - add support for bemenu selector, a multi backend dmenu clone - add a man page +**Notable Bug fixes** + +- some input were skipped because not recognized as text + # 1.2.0 **New features** diff --git a/main.go b/main.go index ca6774d..9d075fe 100644 --- a/main.go +++ b/main.go @@ -169,7 +169,8 @@ func serveTxt(s string) { log.Printf("couldn't find wl-copy: %v\n", err) } - cmd := exec.Cmd{Path: bin, Stdin: strings.NewReader(s)} + // we mandate the mime type because we know we can only serve text; not doing this leads to weird bugs like #35 + cmd := exec.Cmd{Path: bin, Args: []string{bin, "-t", "TEXT"}, Stdin: strings.NewReader(s)} if err := cmd.Run(); err != nil { log.Printf("error running wl-copy: %s\n", err) }