When I installing it, it says: * You need to add * export GTK2_RC_FILES="`pwd`/.gtkrc-2.0" * in your /etc/profile * if you want to use gtk-chtheme with qgtkstyle I believe that all or most of global variables must be set thru /etc/env.d/* instead of directly in /etc/profile Reproducible: Always Steps to Reproduce: 1.emerge gtk-chtheme 2.look at messages Actual Results: * You need to add * export GTK2_RC_FILES="`pwd`/.gtkrc-2.0" * in your /etc/profile * if you want to use gtk-chtheme with qgtkstyle Expected Results: * You need to add * GTK2_RC_FILES="~/.gtkrc-2.0" * into /etc/env.d/50gtk2 * and run env-update * if you want to use gtk-chtheme with qgtkstyle (maybe to 99gtk2 or something alse)
I do not think /etc/env.d is suited for setting environment variables related to the home of the currently logged in user. However, telling users to modify /etc/profile is just as wrong. This kind of variable most likely needs to go into ~/.xprofile. Could you please try setting this variable there and tell us if it works for you ?
please get back to us.
Oops, didn't see your message... I've set this variable in ~/.xprofile, restarted xdm, and variable seems unset in xterm: mars@nee ~ $ cat .xprofile GTK2_RC_FILES=~/.gtkrc-2.0 mars@nee ~ $ echo $GTK2_RC_FILES mars@nee ~ $ Maybe it is because I'm using i3 window manager and ~/.xinitrc . At which moment X loads .xprofile?
you need to export the variable in .xprofile. Just like scim ebuilds recommends for configuration.
Nope: mars@nee ~ $ cat .xprofile export GTK2_RC_FILES=~/.gtkrc-2.0 mars@nee ~ $ echo $GTK2_RC_FILES mars@nee ~ $ Seems that xdm doesn't look at this file...
Ok this is actually a problem with xdm not sourcing .xprofile. It seems only gdm supports this, moving to x11 herd because we need a unified X startup sequence.
The simple solution would to be to source the .Xprofile file but that'd probably collide with GDM and KDM which seem to source it by themselves.
This bug predates gentoo.git and I see no indication of /etc/profile there on x11-themes/gtk-chtheme. Closing as obsolete since it's assigned to x11.