activitywatch icon indicating copy to clipboard operation
activitywatch copied to clipboard

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

Open nbCloud91 opened this issue 4 years ago • 12 comments

  • [x] I am on the 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.

nbCloud91 avatar Feb 04 '22 17:02 nbCloud91

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏

github-actions[bot] avatar Feb 04 '22 17:02 github-actions[bot]

@nbCloud91 I just released v0.12.0b1, which still contains the libgio library.

Can you confirm the error is still present in that release and that removing the lib solves it?

ErikBjare avatar Mar 03 '22 14:03 ErikBjare

Checked out the pre-release v0.12.0b1, still the same issue.

PS: I'm not using ActivityWatch, looking at the state of affairs regarding Gnome implementation of Wayland, it seems like many convenience software packages will not be available to end users. Neither is there any consensus among the different DEs regarding wlroots or other standards. Tried using sway, but I do not like tiling WM, gave up.

nbCloud91 avatar Apr 05 '22 18:04 nbCloud91

@ErikBjare I am getting this error using v0.12.0b2

capfredf avatar Jul 27 '22 01:07 capfredf

I'm getting this error on recently published 0.12.0, on Ubuntu 21.10

tmotyl avatar Aug 31 '22 15:08 tmotyl

@tmotyl Did removing the library work in your case too? Which distro?

ErikBjare avatar Aug 31 '22 16:08 ErikBjare

Ubuntu 21.10 on Wayland

vanilla AW:

2022-08-31 17:40:10 [INFO ]: Creating trayicon...  (aw_qt.trayicon:205)
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

(aw-qt:992814): GLib-GIO-ERROR **: 17:40:10.760: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
[1]    992814 trace trap (core dumped)  ./aw-qt

after removing libgio-2.0.so.0

2022-08-31 19:20:20 [INFO ]: Creating trayicon...  (aw_qt.trayicon:205)
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
2022-08-31 19:20:20 [INFO ]: Initialized aw-qt and trayicon successfully  (aw_qt.trayicon:244)

so error is gone, but warning stays

tmotyl avatar Aug 31 '22 17:08 tmotyl

Ubuntu 22 after removing libgio getting ./aw-qt: symbol lookup error: /lib/x86_64-linux-gnu/libEGL_mesa.so.0: undefined symbol: wl_proxy_marshal_flags

dolzenko avatar Nov 30 '22 09:11 dolzenko