diff options
author | tv <tv@krebsco.de> | 2020-05-01 10:01:50 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2020-05-01 10:06:03 +0200 |
commit | 2f2acb0211f80a711eac7d188d979e0280c455d7 (patch) | |
tree | 22045fb65fce83fa4cfbc43eb76b26b2ae0077a4 | |
parent | 48347a973b39a8fe5a6731609c27a178dea11f3c (diff) |
Flameshot.Internal.copyToClipboard: use runAway
-rw-r--r-- | src/Flameshot/Internal.hs | 5 |
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 = |