Merge pull request #33 from jnphilipp/fix-notifications

Default in getenv needs to be str not bool.
This commit is contained in:
Jonathan Lestrelin 2022-10-07 09:49:06 +00:00 committed by GitHub
commit 8a973038ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)