Skip to content

Commit

Permalink
Set app id
Browse files Browse the repository at this point in the history
Windows 11 notifications show the app ID
  • Loading branch information
elibroftw committed Oct 7, 2024
1 parent 5278250 commit df276eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sys_tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
import time
import os
from base64 import b64decode
import ctypes


def system_tray(main_queue: mp.Queue, child_queue: mp.Queue):
from b64_images import FILLED_ICON, UNFILLED_ICON

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

Expand Down

0 comments on commit df276eb

Please sign in to comment.