Fix showing exception. Improve README a little bit.

This commit is contained in:
Jonathan Lestrelin 2021-09-28 02:36:34 +02:00
parent 1d936552ce
commit 54a85ff9d4
2 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@ A search provider for GNOME Shell that adds support for searching passwords in z
Names of passwords will show up in GNOME Shell searches, choosing one will copy the corresponding content to the clipboard.
Supports OTP, fields (pass only) and can use GPaste (pass or rbw).
Can use the [GPaste](https://github.com/Keruspe/GPaste) clipboard manager, supports OTP and fields (pass only, requires GPaste).
![Sreencapture](misc/screencapture.gif)
@ -33,7 +33,8 @@ Ensure that python>=3.7 as well as the dbus, gobject and fuzzywuzzy Python modul
Clone this repository and run the installation script as root:
```
git clone git@github.com:jle64/gnome-shell-pass-search-provider.git
git clone https://github.com/jle64/gnome-pass-search-provider.git
cd gnome-pass-search-provider
sudo ./install.sh
```

View File

@ -208,7 +208,7 @@ class SearchPassService(dbus.service.Object):
else:
self.notify("Copied password to clipboard:", body=f"<b>{name}</b>")
except (subprocess.CalledProcessError, FileNotFoundError, RuntimeError) as e:
self.notify("Failed to copy password or field!", body=e.output, error=True)
self.notify("Failed to copy password or field!", body=str(e), error=True)
def notify(self, message, body="", error=False):
try: