diff --git a/src/wallman_systray.py b/src/wallman_systray.py index 18bed22..a2ce6af 100644 --- a/src/wallman_systray.py +++ b/src/wallman_systray.py @@ -1,4 +1,4 @@ -from os import getenv, chdir +from os import chdir import logging # Use logger that is also in wallman_lib logger = logging.getLogger("wallman") @@ -36,7 +36,7 @@ def on_quit(icon, item, shutdown_scheduler): chdir("/etc/wallman/icons/") try: - icon_image = Image.open("systrayIcon.jpg") + icon_image: Image.Image = Image.open("systrayIcon.jpg") except FileNotFoundError: - logger.error("~/.config/wallman/systrayIcon.jpg has not been found, wallman will launch without a systray.") - print("~/.config/wallman/systrayIcon.jpg has not been found, wallman will launch without a systray.") + logger.error("/etc/wallman/icons/systrayIcon.jpg has not been found, wallman will launch without a systray.") + print("ERROR: /etc/wallman/icons/systrayIcon.jpg has not been found, wallman will launch without a systray.")