diff --git a/pyproject.toml b/pyproject.toml index 346df00a..29e3aa38 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ urls = { Homepage = "https://maestral.app" } requires-python = ">=3.8" dependencies = [ "click>=8.0.2", - "desktop-notifier>=3.3.0", + "desktop-notifier>=5.0.0", "dropbox>=11.28.0,<13.0", "fasteners>=0.15", "keyring>=22", diff --git a/src/maestral/notify.py b/src/maestral/notify.py index 5ffa440a..a3c32d7f 100644 --- a/src/maestral/notify.py +++ b/src/maestral/notify.py @@ -15,7 +15,7 @@ from asyncio import AbstractEventLoop from typing import Any, Callable, cast # external imports -from desktop_notifier import Button, DesktopNotifier, Urgency +from desktop_notifier import Button, DesktopNotifier, Icon, Urgency # local imports from .config import MaestralConfig @@ -36,7 +36,7 @@ logger.setLevel(logging.ERROR) _desktop_notifier = DesktopNotifier( app_name=APP_NAME, - app_icon=APP_ICON_PATH.as_uri(), + app_icon=Icon(path=APP_ICON_PATH), )