Don't put pass/rbw stderr content in stdout so as to not add errors into clipboard.

This commit is contained in:
Jonathan Lestrelin 2022-07-01 13:27:39 +02:00
parent 7fb89aebd2
commit 2acdad58c0

View File

@ -107,7 +107,7 @@ class SearchPassService(dbus.service.Object):
name = "".join(terms[1:]) name = "".join(terms[1:])
password_list = subprocess.check_output( password_list = subprocess.check_output(
["rbw", "list"], stderr=subprocess.STDOUT, universal_newlines=True ["rbw", "list"], universal_newlines=True
).split("\n")[:-1] ).split("\n")[:-1]
results = [ results = [
@ -159,7 +159,7 @@ class SearchPassService(dbus.service.Object):
) )
output = subprocess.check_output( output = subprocess.check_output(
base_args + [name], stderr=subprocess.STDOUT, universal_newlines=True base_args + [name], universal_newlines=True
) )
if field is not None: if field is not None:
match = re.search( match = re.search(