From 1b6f4b81759aa5e50512cb2ca7af93ae2c1bcc1a Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sat, 13 Nov 2021 00:48:06 +0100 Subject: pkgs/profpatsch/read-qr-code: don’t pipe to notify-send MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/profpatsch/read-qr-code.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'pkgs/profpatsch') diff --git a/pkgs/profpatsch/read-qr-code.nix b/pkgs/profpatsch/read-qr-code.nix index bc4684c1..6448929e 100644 --- a/pkgs/profpatsch/read-qr-code.nix +++ b/pkgs/profpatsch/read-qr-code.nix @@ -6,17 +6,14 @@ let // getBins libnotify [ "notify-send" ]; script = writeExecline "read-qr-code" {} [ - "backtick" "-iE" "qrcontent" [ - "pipeline" [ - bins.import "png:-" - ] - bins.zbarimg - "-Sdisable" - "-Sqrcode.enable" - "--raw" - "-" + "pipeline" [ + bins.import "png:-" ] - bins.notify-send "$qrcontent" + bins.zbarimg + "-Sdisable" + "-Sqrcode.enable" + "--raw" + "-" ]; in script // { -- cgit 1.4.1