site  contact  subhomenews

Gnome dependency in GTK3

January 25, 2014 — BarryK
I don't really want to use GTK3 apps, but in Quirky Tahr have some. I installed Evince, a PDF viewer, and it works (after installing a trail of deps), but gives this error at startup:

** (evince:6307): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

I googles around, and found this:

So, I have put code into 3builddistro to export NO_AT_BRIDGE=1:
#140125 disable gtk dependency on a stupid gnome daemon...

if [ -d rootfs-complete/usr/lib${xARCHDIR}/gtk-3.0 ];then
echo 'export NO_AT_BRIDGE=1' > rootfs-complete/etc/profile.d/gtk3

...that error message no longer occurs.

There is still a bug with Evince though, menu icons do not display. That is next on the to-do list.


Very good news, I compiled Evince document viewer version 2.32.0, the last version that supports GTK2, against the poppler 2.24.3 libs in Trusty Tahr, and it works great. I configured with absolute minimum dependencies, so Evince is only a PDF and image viewer, no gnome deps.

It did require a patch to compile against libICE, that I got from Ubuntu.

The result is a small app that renders PDFs without any apparent fault. I haven't tested printing yet.

GTK3 gone
I took a look at what other GTK3-based apps are in my Quirky Tahr -- only Abiword, Gnumeric and Transmission. I have replaced them with GTK2 versions, and have removed GTK3 entirely. Yay!

I might release Quirky Tahr in a day or two.

Tags: linux