From d207cf78eb5b8f2d788a798b3602542619f7c6b5 Mon Sep 17 00:00:00 2001 From: Timo Loewe Date: Tue, 1 Jan 2019 14:43:46 +0100 Subject: [PATCH] Improve notifications --- gnome-pass-search-provider.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnome-pass-search-provider.py b/gnome-pass-search-provider.py index 949ad8f..207c322 100755 --- a/gnome-pass-search-provider.py +++ b/gnome-pass-search-provider.py @@ -120,7 +120,7 @@ class SearchPassService(dbus.service.Object): password, dbus_interface='org.gnome.GPaste1' ) - self.notify('Password {} copied to clipboard.'.format(name)) + self.notify('Copied password to clipboard:', body='{}'.format(name)) else: self.notify('Failed to copy password', body=error, error=True) @@ -130,7 +130,7 @@ class SearchPassService(dbus.service.Object): if pass_cmd.returncode: self.notify('Failed to copy password!', error=True) else: - self.notify('Password {} copied to clipboard.'.format(name)) + self.notify('Copied password to clipboard:', body='{}'.format(name)) def send_password_to_clipboard(self, name): try: @@ -148,7 +148,7 @@ class SearchPassService(dbus.service.Object): ).Notify( 'Pass', 0, - '', + 'dialog-password', message, body, '',