ActivityWatch / ActivityWatch/docs
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'Authorization required, but no authorization protocol specified\n'
- 主要語言
- Python
- 星號
- 31
- 分支
- 84
- 平均合併
- 12 天 5 小時
- 30 天內合併 PR
- 2
描述
On debian based distros like kali I have a truoble with running tis app. Infinity output:
```
2026-08-29 19:07:21 [ERROR]: Exception thrown while trying to get active window (aw_watcher_window.main:133)
Traceback (most recent call last):
File "aw_watcher_window/main.py", line 115, in heartbeat_loop
File "aw_watcher_window/lib.py", line 64, in get_current_window
File "aw_watcher_window/lib.py", line 8, in get_current_window_linux
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "aw_watcher_window/xlib.py", line 13, in
File "Xlib/display.py", line 89, in __init__
File "Xlib/display.py", line 71, in __init__
File "Xlib/protocol/display.py", line 166, in __init__
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'Authorization required, but no authorization protocol specified\n'
2026-08-29 19:07:22 [ERROR]: Exception thrown while trying to get active window (aw_watcher_window.main:133)
Traceback (most recent call last):
File "aw_watcher_window/main.py", line 115, in heartbeat_loop
File "aw_watcher_window/lib.py", line 64, in get_current_window
File "aw_watcher_window/lib.py", line 8, in get_current_window_linux
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "aw_watcher_window/xlib.py", line 13, in
File "Xlib/display.py", line 89, in __init__
File "Xlib/display.py", line 71, in __init__
File "Xlib/protocol/display.py", line 166, in __init__
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'Authorization required, but no authorization protocol specified\n'
```
May be need to make wayland support?
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。