Fix NoneType error.

This commit is contained in:
J. Nathanael Philipp 2022-10-01 18:17:24 +02:00
parent 92270735c5
commit 102b7e044a
No known key found for this signature in database
GPG Key ID: B1734342CFA62253

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):