update to new desktop-notifier API

This commit is contained in:
Sam Schott 2024-09-08 18:02:28 +02:00
parent 192232065f
commit 0027ed0c57
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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),
)