ActivityWatch / aw-qt

Tray icon that manages ActivityWatch processes, built with Qt.
Mozilla Public License 2.0
27 stars 28 forks source link

No tray icon on GNOME Wayland #92

Open flexagoon opened 1 year ago

flexagoon commented 1 year ago

I have the AppIndicator Support extension installed, and other tray icons are working fine. But when I launch aw-qt, the tray icon does not appear. If I run it from the terminal, I get an error:

(aw-qt:109375): GLib-GIO-ERROR **: 00:55:08.634: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
flexagoon commented 1 year ago

Although aw-watcher-window does not support Wayland, there is aw-watcher-window-wayland, and I'll also soon publish aw-watcher-gnome (mentioned here). Also, some people may just use ActivityWatch with other watchers that don't depend on the display server, eg. the browser or editor watchers.

So it would be good if the tray icon worked on Wayland.

nbCloud91 commented 1 year ago

Relevant issue with workaroud

Workaround

the libgio-2.0.so.0 bundled with the application is old and is requesting a key which is not present. I deleted the bundled lib and got the tray-icon to work.

Edit: Also thank you for implementing a watcher for gnome. I may finally be able to use ActivityWatch.

almereyda commented 2 months ago

It appears the binary aw-awatcher from https://github.com/2e3s/awatcher can act to replace aw-watcher-afk and aw-watcher-window

Even though https://extensions.gnome.org/extension/615/appindicator-support/ is installed, as per the suggestion in the documentation, there is another error thrown:

.local/opt/activitywatch/aw-qt: symbol lookup error: /home/yala/.local/opt/activitywatch/libQt6WaylandClient.so.6: undefined symbol: wl_proxy_marshal_flags

This is the same error as reported in https://github.com/ActivityWatch/activitywatch/issues/710#issuecomment-1331856907, but raised from another library.