--- qtgui-4.8.4-r1.ebuild +++ qtgui-4.8.4-r2.ebuild @@ -215,6 +215,14 @@ make_desktop_entry designer Designer designer 'Qt;Development;GUIDesigner' make_desktop_entry linguist Linguist linguist 'Qt;Development;Translation' make_desktop_entry qtconfig 'Qt Configuration Tool' qtconfig 'Qt;Settings;DesktopSettings' + + # see bug 388551 + cat <<-EOF > "${T}"/qtgui.sh + export GTK2_RC_FILES=\${HOME}/.gtkrc-2.0 + EOF + insinto /etc/profile.d + doins "${T}"/qtgui.sh + } pkg_postinst() { @@ -222,12 +230,4 @@ # raster is the default graphicssystem, set it on first install eselect qtgraphicssystem set raster --use-old - - if use gtkstyle; then - # see bug 388551 - elog "For Qt's GTK style to work, you need to either export" - elog "the following variable into your environment:" - elog ' GTK2_RC_FILES="$HOME/.gtkrc-2.0"' - elog "or alternatively install gnome-base/libgnomeui" - fi }