From 15556e40f0c9442aa7b47c8f0adb4fbff25bbcf4 Mon Sep 17 00:00:00 2001 From: wattygetlood <61716739+wattygetlood@users.noreply.github.com> Date: Thu, 16 Sep 2021 16:46:44 -0400 Subject: [PATCH] No support for notifications (yet) on windows --- piker/ui/order_mode.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/piker/ui/order_mode.py b/piker/ui/order_mode.py index 755e72f3..437e4ca5 100644 --- a/piker/ui/order_mode.py +++ b/piker/ui/order_mode.py @@ -22,6 +22,7 @@ from contextlib import asynccontextmanager from dataclasses import dataclass, field from functools import partial from pprint import pformat +import platform import time from typing import Optional, Dict, Callable, Any import uuid @@ -429,6 +430,9 @@ class OrderMode: # TODO: make this not trash. # XXX: linux only for now + if platform.system() == "Windows": + return + result = await trio.run_process( [ 'notify-send',