Open kovasap opened 1 year ago
I don't see this issue with a clean install of https://github.com/ActivityWatch/activitywatch/releases/tag/v0.12.2.
I had the same issue with an ActivityWatch pre-release (it was a v0.12.3b
, but I'm not sure if it was exactly the v0.12.3b10
release) on Xubuntu 23.04. I'm also experiencing this issue on NixOS 23.11, which uses ActivityWatch version 0.12.2
.
The whole thing originates from aw-qt
that tries to create a tray icon using the Qt libraries (PyQt6, as you can see in trayicon.py).
I am not very familiar with the Qt ecosystem, but as far as I understand Qt has a plugin system that allows you to load plugins either at runtime or at build time. I guess most application developers opt for creating a dynamically linked executable, so their application can load Qt plugins at runtime.
I'm not sure about this - because I'm not familiar with Qt - but it seems that Qt search for runtime plugins in QT_PLUGIN_PATH
(see also this).
It seems that aw-qt is not the only application with this issue.
I wouldn't call this a solution, but as you can see from this line if you launch aw-qt
with --no-gui
, trayicon.py
will not be imported. You will have no tray icon, but you will have no Qt issues.
I had the same issue with v0.13.1 on Linux Mint 21.3 Cinnamon. Additionally I got the message
from 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
I could solve it with
sudo apt-get install -y libxcb-cursor-dev
Found the answer here: https://stackoverflow.com/questions/77725761
I have the same version with the .deb install with version v0.13.2.
Installing libxcb-cursor0 using sudo apt install libxcb-cursor0
solved the issue for me.
The QT warning was more helpful than in the original issue for me:
2024-10-23 09:53:25 [INFO ]: Creating trayicon... (aw_qt.trayicon:208)
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb, linuxfb, vnc, wayland, wayland-egl, minimal, offscreen, minimalegl, vkkhrdisplay.
Describe the bug
I just updated to https://github.com/ActivityWatch/activitywatch/releases/tag/v0.12.3b10 because of https://github.com/ActivityWatch/aw-watcher-window/issues/89 and now I do not see the aw tray icon when starting up. I think this may be a dupe of https://github.com/ActivityWatch/activitywatch/issues/660, but i do not see the offending library in my install directory.
Logs