Merge pull request #32 from jnphilipp/fix-notification

Fix NoneType error when DISABLE_NOTIFICATIONS is not set.
This commit is contained in:
Jonathan Lestrelin 2022-10-01 21:43:01 +00:00 committed by GitHub
commit 6dc332843d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,9 @@ class SearchPassService(dbus.service.Object):
self.password_executable = getenv("PASSWORD_EXECUTABLE") or "pass"
self.password_mode = getenv("PASSWORD_MODE") or "pass"
self.clipboard_executable = getenv("CLIPBOARD_EXECUTABLE") or "wl-copy"
self.disable_notifications = getenv("DISABLE_NOTIFICATIONS").lower() == "true" or False
self.disable_notifications = (
getenv("DISABLE_NOTIFICATIONS", False).lower() == "true"
)
@dbus.service.method(in_signature="sasu", **sbn)
def ActivateResult(self, id, terms, timestamp):