Files
bearhub/bauh/view/core/tray_client.py
2021-11-25 16:09:42 -03:00

13 lines
325 B
Python

from pathlib import Path
from bauh.api.paths import CACHE_DIR
TRAY_CHECK_FILE = f'{CACHE_DIR}/notify_tray' # it is a file that signals to the tray icon it should recheck for updates
def notify_tray():
Path(CACHE_DIR).mkdir(exist_ok=True, parents=True)
with open(TRAY_CHECK_FILE, 'w+') as f:
f.write('')