summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-05-01 10:01:50 +0200
committertv <tv@krebsco.de>2020-05-01 10:06:03 +0200
commit2f2acb0211f80a711eac7d188d979e0280c455d7 (patch)
tree22045fb65fce83fa4cfbc43eb76b26b2ae0077a4 /src
parent48347a973b39a8fe5a6731609c27a178dea11f3c (diff)
Flameshot.Internal.copyToClipboard: use runAway
Diffstat (limited to 'src')
-rw-r--r--src/Flameshot/Internal.hs5
1 files changed, 3 insertions, 2 deletions
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 =