Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143925 - x11-themes/gtk-engines-qt-0.7 won't change gtk background colour
Summary: x11-themes/gtk-engines-qt-0.7 won't change gtk background colour
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-14 12:44 UTC by Markus Lohse
Modified: 2006-09-12 13:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Lohse 2006-08-14 12:44:08 UTC
When running enlightenment (instead of kde) most gtk2 apps do not get properly themed by gtk-engines-qt-0.70. Application background and some application menus (e.g. firefox) won't match qt colours.

This is probably an environment variable problem:
export GTK2_RC_FILES=$HOME/.gtkrc-2.0:$HOME/.kde/share/config/gtkrc-2.0
fixes the problem (assuming that ~/.kde is a symlink to your kde-settings)

I wonder whether the kde config-dir is the right place to put those things anyway.  Lots of qt apps can be used without having kde installed, so ~/.qt might be a better place. Also I suggest to set GTK2_RC_FILES somewhere global to make it work in enlightenment and other wm as well.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-14 13:30:14 UTC
can you please submit your suggestions to upstream? Gentoo is only packaging it and prefers to change it as little as possible.
Comment 2 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-14 13:30:25 UTC
UPSTREAM
Comment 3 Markus Lohse 2006-08-14 14:16:27 UTC
Sorry for reopening this bug. I think, setting the correct (global) environment variables depends pretty much on the linux distribution, so the ebuild shoud take care of it.
At least there should be a message for the user during emerge that it must be set and how to set it. Most people won't figure this out on their on.
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-16 02:47:08 UTC
You are right I should care about this problem (in fact on close look I see it too)

But then again you are wrong that this is a Gentoo issue. See the following patch:

http://genstef.homelinux.org/kcmgtk.diff

Usually a file should be installed in /etc/X11/xinit/xinitrc.d/gtk-engines-qt instead. Maybe you want to test it?
Comment 5 Markus Lohse 2006-08-16 14:39:39 UTC
Changing ~/.bashrc is what I tried first. This might fix a few minor issues for people using xterm in kde. Though it's not being sourced by enlightenment nor eterm, so if I start apps from the enlightenment startmenu the environment variable doesn't get set.

However a file in /etc/X11/xinit/xinitrc.d/gtk-engines-qt works great and appears to be a reasonable solution. Can't we just add the file to the ebuild?
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-22 10:11:46 UTC
I mailed upstream about this issue and added the patch + xinitrc.d, thanks :)

double tape fixes better

another problem that I still see is that xinitrc.d is not used everywhere. But this is a separate issue that should be solved where it occurs.
Comment 7 Markus Lohse 2006-09-12 10:11:02 UTC
Sorry, just one last thing:
The file created in /etc/X11/xinit/xinitrc.d/ is not been marked with the execute-flag and thus has no affect.

Solution:
chmod a+x /etc/X11/xinit/xinitrc.d/gtk-engines-qt
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2006-09-12 13:07:30 UTC
thanks, I fixed that, too.