FS#23655 - [xfce-utils] badly presets GTK variables preventing gtk3 apps to load their themes

Attached to Project: Arch Linux
Opened by Andreas Radke (AndyRTR) - Friday, 08 April 2011, 14:40 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 18 June 2011, 10:08 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Jan de Groot (JGC)
Andreas Radke (AndyRTR)
Ionut Biru (wonder)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 9
Private No

Details

Description:

running Xfce when trying to open any gtk3 app they fail to open the proper gtk3 theme.

[andyrtr@workstation64 ~]$ env | grep -i gtk
GTK_MODULES=canberra-gtk-module
GTK_PATH=:/usr/lib/gtk-2.0
[andyrtr@workstation64 ~]$ cat /etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module
#!/bin/sh

if [ -z "$GTK_MODULES" ] ; then
GTK_MODULES="canberra-gtk-module"
else
GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
fi

export GTK_MODULES

[andyrtr@workstation64 ~]$ epiphany

(epiphany:23894): Gtk-WARNING **: GTK+ module /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: Failed to load module "canberra-gtk-module"

This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 18 June 2011, 10:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in 4.8.2
Comment by Ionut Biru (wonder) - Friday, 08 April 2011, 14:42 GMT
this happens because gtk2 and gtk3 both use GTK_MODULES and GTK_PATH.

JGC, any reason that we have that exported?
Comment by Jan de Groot (JGC) - Friday, 08 April 2011, 23:17 GMT
This export was done to make sure GTK always loads canberra. I don't know if it's still required, but to me that GTK_PATH setting looks really wrong. Where does that come from?
Comment by Andreas Radke (AndyRTR) - Saturday, 09 April 2011, 07:31 GMT
[andyrtr@workstation64 ~]$ pacman -Qo /etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module
/etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module ist in libcanberra 0.26-5 enthalten
Comment by Jan de Groot (JGC) - Saturday, 09 April 2011, 08:13 GMT
Yes, I know where the file comes from, but where does GTK_PATH come from?
Comment by Andreas Radke (AndyRTR) - Saturday, 09 April 2011, 09:14 GMT
xfce-utils contains this in /etc/xdg/xfce4/xinitrc:

# Export GTK_PATH so that GTK+ can find the Xfce theme engine
GTK_PATH="$GTK_PATH:/usr/lib/gtk-2.0"
export GTK_PATH

Upstream report opened: https://bugzilla.xfce.org/show_bug.cgi?id=7483
Comment by Nicola (drakkan) - Sunday, 01 May 2011, 09:25 GMT
any workaround before the upstream fix? now that gnome 3 is in extra app such as evolution,evince etc show this problem
Comment by Andreas Radke (AndyRTR) - Sunday, 01 May 2011, 16:23 GMT
I've set in Xfce apperance "Advaita" to use. So it keeps my gtk2 theme and switches properly the gtk3 theme. Not a solution but a workaround for me for now.

Loading...