From df276ebcfbfd4ce9f6640656010aa182030cacec Mon Sep 17 00:00:00 2001 From: Elijah Lopez Date: Sun, 6 Oct 2024 22:48:24 -0400 Subject: [PATCH] Set app id Windows 11 notifications show the app ID --- src/sys_tray.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sys_tray.py b/src/sys_tray.py index f7634d2..7729960 100644 --- a/src/sys_tray.py +++ b/src/sys_tray.py @@ -7,6 +7,7 @@ import time import os from base64 import b64decode +import ctypes def system_tray(main_queue: mp.Queue, child_queue: mp.Queue): @@ -14,6 +15,9 @@ def system_tray(main_queue: mp.Queue, child_queue: mp.Queue): if platform.system() == 'Linux': os.environ['PYSTRAY_BACKEND'] = 'appindicator' + elif platform.system() == 'Windows': + my_app_id = 'elijahlopez.music_caster' + ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(my_app_id) import pystray from PIL import Image