From 2f2acb0211f80a711eac7d188d979e0280c455d7 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 1 May 2020 10:01:50 +0200 Subject: Flameshot.Internal.copyToClipboard: use runAway --- src/Flameshot/Internal.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Flameshot') diff --git a/src/Flameshot/Internal.hs b/src/Flameshot/Internal.hs index fc561fe..44160bf 100644 --- a/src/Flameshot/Internal.hs +++ b/src/Flameshot/Internal.hs @@ -110,8 +110,9 @@ showUnprintable = copyToClipboard :: String -> ByteString -> IO () -copyToClipboard mimetype = - P.writeDaemon "xclip" ["-selection", "clipboard", "-t", mimetype, "-i"] +copyToClipboard mimetype input = + P.runAway "xclip" ["-selection", "clipboard", "-t", mimetype, "-i"] + Nothing Nothing input Nothing mempty logger :: (Blessings Text -> IO ()) -> Text -> P.Callbacks logger putLog name = -- cgit v1.2.3