| Summary: | x11-themes/gtk-chtheme: ebuild asks to modify /etc/profile instead of /etc/env.d/... | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Simeon Maryasin <marsoft> |
| Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | minor | CC: | gnome |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Simeon Maryasin
2009-06-13 17:37:55 UTC
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. |