Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274046 - x11-themes/gtk-chtheme: ebuild asks to modify /etc/profile instead of /etc/env.d/...
Summary: x11-themes/gtk-chtheme: ebuild asks to modify /etc/profile instead of /etc/en...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-13 17:37 UTC by Simeon Maryasin
Modified: 2022-11-13 18:52 UTC (History)
1 user (show)

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 Simeon Maryasin 2009-06-13 17:37:55 UTC
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)
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-09-27 16:23:02 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 ?
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-27 22:27:11 UTC
please get back to us.
Comment 3 Simeon Maryasin 2010-01-28 15:46:16 UTC
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?
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-28 23:58:11 UTC
you need to export the variable in .xprofile. Just like scim ebuilds recommends for configuration.
Comment 5 Simeon Maryasin 2010-01-29 02:09:03 UTC
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...
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-02-09 09:22:24 UTC
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.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-10-03 20:56:56 UTC
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.
Comment 8 Piotr Karbowski (RETIRED) gentoo-dev 2022-11-13 18:52:58 UTC
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.