ActivityWatch / ActivityWatch/activitywatch

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

Đang mở
#710 12 bình luận 4 reaction 0 người được giao Xem trên GitHub
platform: linux pyinstaller stale type: bug
Ngôn ngữ chính
Python
Star
18.9k
Fork
1k
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
28

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.