about summary refs log tree commit diff
path: root/pkgs/profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2021-11-13 00:48:06 +0100
committerProfpatsch <mail@profpatsch.de>2021-11-13 00:48:06 +0100
commit1b6f4b81759aa5e50512cb2ca7af93ae2c1bcc1a (patch)
tree9db14003425548ca4d35e3265992a6798461bce3 /pkgs/profpatsch
parente5d9ceb3a9fac54bbf976eed917e7cc5c72ec2d7 (diff)
pkgs/profpatsch/read-qr-code: don’t pipe to notify-send
Diffstat (limited to 'pkgs/profpatsch')
-rw-r--r--pkgs/profpatsch/read-qr-code.nix17
1 files changed, 7 insertions, 10 deletions
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 // {