mathoudebine / mathoudebine/turing-smart-screen-python
Docking icon not working in Wayland
Nobody has claimed this yet.
- Dominant language
- Rich Text Format
- Stars
- 2.3k
- Forks
- 412
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 7
Description
Describe the bug
Tray icon failed to dock
To Reproduce
Steps to reproduce the behavior:
- Run main.py
- See error
Expected behavior
Tray icon is visible in tray area
Environment:
- Smart screen model: Turing 3.5”
- Revision of this project:
mainbranch - OS with version: Arch Linux with Sway (Wayland)
- Python version: Python 3.12
- Hardware: AMD Ryzen 7 7700X
Additional context
Besides this, everything is working fine.
When testing with i3wm (X11) in the same system the try icon is shown.
The error logs show it is trying to call for _xorg.py
Error log in Sway:
09/10/2024 05:11:22 PM [ERROR] Failed to dock icon
Traceback (most recent call last):
File "/home/user/ironwork/turing-smart-screen-python/.venv/lib/python3.12/site-packages/pystray/_xorg.py", line 162, in _update_icon
self._assert_docked()
File "/home/user/ironwork/turing-smart-screen-python/.venv/lib/python3.12/site-packages/pystray/_xorg.py", line 395, in _assert_docked
assert self._systray_manager
^^^^^^^^^^^^^^^^^^^^^
AssertionError
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running main.py under Sway on Wayland and compare the failure with the working i3wm case. Inspect the pystray/_xorg.py traceback and the project's tray-icon entry point; done means the icon appears under Sway while remaining functional under i3wm.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arch-linux, linux, python
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100