ndonkoHenri / Flet-as-System-Tray-Icon

Implementation of a Flet app as a system tray icon.
24 stars 2 forks source link

Is macos M1 supported? #4

Open cheprus opened 10 months ago

cheprus commented 10 months ago

Hello, TheEthicalBoy, Is macos M1 supported? As I receive the Exception: NotImplementedError

Traceback (most recent call last):
  File "/Users/chep/dev/python/jitsi_ring_bot/tmp/Flet-as-System-Tray-Icon/main.py", line 173, in <module>
    tray_icon.run_detached(setup=my_setup)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pystray/_base.py", line 231, in run_detached
    self._run_detached()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pystray/_darwin.py", line 124, in _run_detached
    raise NotImplementedError()
NotImplementedError

from this part of code

 def _run_detached(self):
        if self._detachable:
            self._mark_ready()
        else:
            raise NotImplementedError()
ndonkoHenri commented 7 months ago

I guess it isn't.

Give pystray docs a look.