Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207017 - some problem with .gtkrc-2.0
Summary: some problem with .gtkrc-2.0
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High trivial
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-22 12:13 UTC by Markus Rathgeb
Modified: 2008-01-22 18:55 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 Markus Rathgeb 2008-01-22 12:13:34 UTC
I hope this bug is not reported before.
I do not find anything, but to search for this behavior is not so easy.
Could it be, that the home path was set wrong (see output below to understand what I mean)?
/home/maggu2810/HOME/.gtkrc-2.0
Why '/HOME'?
I believe that yesterday, before i have compiled xorg-server-1.4.0.90-r2 the path '/usr/portage/x11-base/xorg-server/homepath' (insted of '/home/maggu2810/HOME/.gtkrc-2.0') was used. But I do not know exactly the path of yesterday.

---------------------------------------------

command (firefox is just a example because I detect this problem with missing my gtk style):
strace -e file /usr/lib/mozilla-firefox/firefox-bin 2>&1 | grep gtkrc

output:
lstat64("/home/maggu2810/HOME/.gtkrc-2.0", 0xbf91b3ac) = -1 ENOENT (No such file or directory)
access("HOME/.gtkrc-2.0.en_US", F_OK)   = -1 ENOENT (No such file or directory)
access("HOME/.gtkrc-2.0.en", F_OK)      = -1 ENOENT (No such file or directory)
access("/home/maggu2810/.themes/Raleigh/gtk-2.0/gtkrc", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/themes/Raleigh/gtk-2.0/gtkrc", F_OK) = 0
lstat64("/usr/share/themes/Raleigh/gtk-2.0/gtkrc", {st_mode=S_IFREG|0644, st_size=69, ...}) = 0
open("/usr/share/themes/Raleigh/gtk-2.0/gtkrc", O_RDONLY|O_LARGEFILE) = 11
access("/usr/share/themes/Raleigh/gtk-2.0/gtkrc.en_US", F_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/themes/Raleigh/gtk-2.0/gtkrc.en", F_OK) = -1 ENOENT (No such file or directory)


Reproducible: Always

Steps to Reproduce:
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-22 12:19:30 UTC
Really don't understand what does xorg-server have in common with gtkrc-2.0 and GTK themes... Post your emerge --info and emerge -pv gtk+ output.

Comment 2 Stian Skjelstad 2008-01-22 12:45:05 UTC
The current theme to use is stored on the xserver, so xorg can affect themes.
Comment 3 Markus Rathgeb 2008-01-22 13:50:28 UTC
The path was something like this '/usr/portage/x11-base/xorg-server/homepath' 
So I thought the xserver could be responsible for that.
"Really don't understand what does xorg-server have in common with gtkrc-2.0 and GTK themes..."
Why should gtk know something of this path?
Is it so difficult to understand why I thought this?

---

emerge --info

Portage 2.1.4 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo i686)
=================================================================
System uname: 2.6.23-gentoo i686 Mobile AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Tue, 22 Jan 2008 08:46:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --forc
e --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/musicbrainz /usr/portage/local/layman/secondlife /usr/portage/local/layman/sunrise /usr/portage/local/layman/zugaina /usr/portage/local/layman/maggu2810_overlay /usr/portage/local/overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac accessibility acl acpi aiglx aim alsa amarok amr amrnb amrwb apache2 asf audiofile bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdaudio cdda cddb cdparanoia cdr cgi cjk cli cracklib crypt css cups curl curlwrappers cvs daap dbus dhcp directfb divx dri dts dv dvd dvdnav dvdr dvdread dvi encode exif fam fame fbcon fbdev fbsplash festival ffmpeg flac flash fmod fontconfig fortran freetype freetype2 ftp fuse gd gdbm gif gimp gimpprint glitz glx gmedia gnokii gnutls gphoto2 gpm graphviz gs gstreamer hal iconv icq id3tag idn ieee1394 imagemagick imlib ipod ipv6 irda irmc isdnlog jabber java javamail javascript joystick jpeg jpeg2k kde kickoff kipi ladspa lame latex libgcrypt libnotify libsamplerate libshout lirc live logitech-mouse logrotate lzo mad matroska midi mikmod mime mjpeg mmx mmxext mono mp2 mp3 mp4 mpeg mpegts mplayer msn mudflap musepack music musicbrainz ncurses net network newspr nls no-seamonkey nptl nptlonly nsplugin ntfs ocr ogg ogm openal opengl openmp osc oscar pam pcm pcmcia pcre pdf perl php plotutils png pnm ppds pppd pvr python qt qt3 qt3support qt4 quicktime rar readline real realmedia reflection reiserfs rtsp samba scanner sdl session sharedmem shorten slang sms sndfile sound soundtouch sox speex spell spl sql srt sse sse2 ssl stream streamripper subversion svg sysfs taglib tagwriting tcl tcltk tcpd tetex theora threads threadsafe tidy tiff timidity tk truetype truetype-fonts twolame type1-fonts udev unicode usb userlocales v4l v4l2 vcd vcdx videos vidix vorbis wavpack wifi win32codecs wma wmf wmp wxwindows x264 x86 xcomposite xine xml xorg xosd xpm xprint xscreensaver xv xvid yahoo zlib" ALSA_CARDS="usb-audio via82xx via82xx-modem" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="inputlirc" USERLAND="GNU" VIDEO_CARDS="radeon fglrx fbdev vesa"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

---

emerge -pv gtk+

[ebuild   R   ] x11-libs/gtk+-2.12.5-r1  USE="X cups jpeg tiff -debug -doc -vim-syntax -xinerama" 0 kB 
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-01-22 13:57:56 UTC
have some difficulties understanding your problem besides the fact that $HOME is incorrect. Sounds like a typo in some script (check your .bashrc and other config files you recently changed).
Comment 5 Markus Rathgeb 2008-01-22 17:15:53 UTC
Sorry for my stupidness.

command: env | grep -i gtk2
output: GTK2_RC_FILES=HOME/.gtkrc-2.0

I am using kde for the window management.
For the gtk themes I use 'x11-themes/gtk-engines-qt'.
So the file "~/.kde/env/gtk-qt-engine.rc.sh" is created with this content:
'export GTK2_RC_FILES=$HOME/.gtkrc-2.0-kde'

But why HOME and not the environment was set...
Comment 6 Markus Rathgeb 2008-01-22 17:21:48 UTC
So, a other config file must set this variable on my system.
I will search this file.
Thanks all!
Comment 7 Markus Rathgeb 2008-01-22 17:26:04 UTC
Just for the information:

grep -R GTK2_RC_FILES /etc

/etc/env.d/99my_envs:GTK2_RC_FILES=$HOME/.gtkrc-2.0
/etc/profile.env:export GTK2_RC_FILES=$'HOME/.gtkrc-2.0'
/etc/csh.env:setenv GTK2_RC_FILES '$HOME/.gtkrc-2.0'
/etc/profile.csh:setenv GTK2_RC_FILES '/var/tmp/portage/x11-base/xorg-server-1.4.0.90-r2/homedir/.gtkrc-2.0'

/etc/profile.env is wrong
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-01-22 17:45:42 UTC
from profile.env

# THIS FILE IS AUTOMATICALLY GENERATED BY env-update.
# DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES
# GO INTO /etc/profile NOT /etc/profile.env

this means that your either set something wrong in /etc/env.d/ or in /etc/profile or in /etc/profile.d/

check your /etc/env.d/99my_envs and then rerun update-env and then check again everything is fine. From my point this is invalid since it appears you did something wrong.
Comment 9 Markus Rathgeb 2008-01-22 18:55:32 UTC
I removed the line from my environment.