From 2acdad58c0a96f7dcdbdb3dceae7233dabf6539f Mon Sep 17 00:00:00 2001 From: Jonathan Lestrelin Date: Fri, 1 Jul 2022 13:27:39 +0200 Subject: [PATCH] Don't put pass/rbw stderr content in stdout so as to not add errors into clipboard. --- gnome-pass-search-provider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnome-pass-search-provider.py b/gnome-pass-search-provider.py index 7d26dcb..3297f5d 100755 --- a/gnome-pass-search-provider.py +++ b/gnome-pass-search-provider.py @@ -107,7 +107,7 @@ class SearchPassService(dbus.service.Object): name = "".join(terms[1:]) password_list = subprocess.check_output( - ["rbw", "list"], stderr=subprocess.STDOUT, universal_newlines=True + ["rbw", "list"], universal_newlines=True ).split("\n")[:-1] results = [ @@ -159,7 +159,7 @@ class SearchPassService(dbus.service.Object): ) output = subprocess.check_output( - base_args + [name], stderr=subprocess.STDOUT, universal_newlines=True + base_args + [name], universal_newlines=True ) if field is not None: match = re.search(