ActivityWatch / ActivityWatch/activitywatch

aw-qt fails to start on gnome 40 (Wayland) because of old libgio-2.0.so.0

Open
#710 12 comments 4 reactions 0 assignees View on GitHub
platform: linux pyinstaller stale type: bug
Dominant language
Python
Stars
18.9k
Forks
1k
Avg merge
1d 4h
Merged PRs (30d)
28

Description

- [x] I am on the [latest](https://github.com/ActivityWatch/activitywatch/releases/latest) ActivityWatch version.
- [x] I have searched the issues of this repo and believe that this is not a duplicate.

- **OS name and version**: Ubuntu 21.10 linux:5.13.0-28-generic
- **ActivityWatch version**: v0.11.0

## Describe the bug
Although default gnome does not have system-tray, most common distributions provide extensions to circumvent that. Thus, `aw-qt` should work in these cases. But upon starting it with `./aw-qt`, this error comes up and process is terminated:
```
...
2022-02-04 22:31:36 [INFO ]: Creating trayicon... (aw_qt.trayicon:206)
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

(aw-qt:7407): GLib-GIO-ERROR **: 22:31:36.281: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
2022-02-04 22:31:36 [INFO ]: aw-watcher-window started (aw_watcher_window.main:51)
2022-02-04 22:31:36 [INFO ]: aw-watcher-afk started (aw_watcher_afk.afk:55)
fish: Job 1, 'aw-qt' terminated by signal SIGTRAP (Trace or breakpoint trap)
```
# 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.