From 8a08d84fdad48d7ea45a774554126dd8b67a4800 Mon Sep 17 00:00:00 2001 From: detiam Date: Mon, 6 Jan 2025 02:57:06 +0800 Subject: [PATCH] Fix Linux notification API using notify-send binary --- plyer/platforms/linux/notification.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plyer/platforms/linux/notification.py b/plyer/platforms/linux/notification.py index 95a6472a4..e16a624a9 100644 --- a/plyer/platforms/linux/notification.py +++ b/plyer/platforms/linux/notification.py @@ -33,14 +33,14 @@ class NotifySendNotification(Notification): using notify-send binary. ''' def _notify(self, **kwargs): - icon = kwargs.get('icon', '') + icon = kwargs.get('app_icon', '') title = kwargs.get('title', 'title') hint = kwargs.get('hint', 'string::') message = kwargs.get('message', 'body') category = kwargs.get('category', '') app_name = kwargs.get('app_name', '') urgency = kwargs.get('urgency', 'normal') - expire_time = kwargs.get('expire_time', '0') + expire_time = str(int(kwargs.get('timeout', 0)) * 1000) notify_send_args = (title, message,