Default in getenv needs to be str not bool.

This commit is contained in:
J. Nathanael Philipp 2022-10-02 18:26:14 +02:00
parent 6dc332843d
commit 2ced9fe955
No known key found for this signature in database
GPG Key ID: B1734342CFA62253

View File

@ -68,7 +68,7 @@ class SearchPassService(dbus.service.Object):
self.password_mode = getenv("PASSWORD_MODE") or "pass"
self.clipboard_executable = getenv("CLIPBOARD_EXECUTABLE") or "wl-copy"
self.disable_notifications = (
getenv("DISABLE_NOTIFICATIONS", False).lower() == "true"
getenv("DISABLE_NOTIFICATIONS", "false").lower() == "true"
)
@dbus.service.method(in_signature="sasu", **sbn)