ActivityWatch / ActivityWatch/activitywatch

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

未关闭
#710 12 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
platform: linux pyinstaller stale type: bug
主要语言
Python
星标
18.9k
派生
1k
平均合并
1 天 4 小时
30 天内合并 PR
28

描述

- [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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。