I emerged Kile on 2 different systems, each running Gentoo. When I start Kile, most of the icons are missing. I've found a fix to the problem by changing the KDEDIRS variable from "/usr" to "/usr/kde/3.3". This is the only KDE app I've seeen on my system which has missing icons which leads me to believe that the problem may be in the Kile ebuild. NOTE: the old version (1.6) worked without any problems. Reproducible: Always Steps to Reproduce: 1. $ su 2. # ACCEPT_KEYWORDS="~x86" emerge kile 3. # exit 4. $ kile // icons are missing 5. $ env KDEDIRS="/usr/kde/3.3" kile // icons are present Actual Results: kile starts but icons are missing. Changing KDEDIRS to "/usr/kde/3.3" fixes problem Expected Results: The icons should load properly. Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.7-gentoo-r11) ================================================================= System uname: 2.6.7-gentoo-r11 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=pentium3 -march=pentium3 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config//usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config//usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=pentium3 -march=pentium3 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://mirrors.tds.net/gentoo http://128.213.5.34/gentoo/ http://mirror.cpsc.ucalgary.ca/mirror/gentoo.org http://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X aalib alsa apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups directfb encode esd foomaticdbgdbm gif gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg mysql nas ncurses nls oggvorbis opengl oss pam pda pdflib perl png postgres python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xprint xv zlib"
Non kde-base/* packages go into /usr. Everything looks fine here. Which icons are you missing?
It seems that all the icons located in "/usr/share/apps/kile" don't get loaded.
Same problem with kile 1.7.1 with and without kde use flag?
I think there may be a problem with the KDEDIRS environment variable in Gentoo. The default value in /etc/env.d/99kde-env is /usr. If I change it to /usr/kde, Kile loads fine, but I see missing icons in other KDE apps. I changed KDEDIRS to /usr:/usr/kde:/usr/kde/3.3 and the icons seem to be loading ok now for all the programs.
i was having a very similar problem with koffice and k3b until i did the following: emerge kde-env strange... i forgot to check what changed in there. /etc/env.d/99kde the only thing i know is that the newly installed kde-env sets KDEDIRS=/usr. but why did this not get updated automagically when emerging world and updating kde...?
>I think there may be a problem with the KDEDIRS environment variable in Gentoo. The default value in /etc/env.d/99kde-env is /usr No. That's by design and not the source of your problem. `env | grep KDE` should print: KDEDIR=/usr/kde/x.y KDEDIRS=/usr
For those with this strange problem, could you try running # KDEDIRS="" strace -okile-working.log kile (and immediately close kile) # KDEDIRS="/usr" strace -okile-notworking.log kile (and immediately close kile) and take a look at the output files (watch out, they can be quite big). For instance, see where it tries to load the icon "math1.png": # grep math1.png kile-working.log # grep math1.png kile-notworking.log and post the output here.
$ grep math1.png kile-working.log access("/usr/share/icons/Nuvola-1.0_beta/16x16/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/16x16/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/16x16/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/16x16/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/16x16/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/apps/kile/icons/hicolor/16x16/actions/math1.png", R_OK) = 0 open("/usr/share/apps/kile/icons/hicolor/16x16/actions/math1.png", O_RDONLY|O_LARGEFILE) = 14 $ grep math1.png kile-not-working.log access("/usr/share/icons/Nuvola-1.0_beta/16x16/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/16x16/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/16x16/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/16x16/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/16x16/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/16x16/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/16x16/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/16x16/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/16x16/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/16x16/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/16x16/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/16x16/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/16x16/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/16x16/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/16x16/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/22x22/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/32x32/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/48x48/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/16x16/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/32x32/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/48x48/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/64x64/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/128x128/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/16x16/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/32x32/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/48x48/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/64x64/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/128x128/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/16x16/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/32x32/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/48x48/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/64x64/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/128x128/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/16x16/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/32x32/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/48x48/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/64x64/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/128x128/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/48x48/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/48x48/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/48x48/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/64x64/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/64x64/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/64x64/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/64x64/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/128x128/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/128x128/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/128x128/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/Nuvola-1.0_beta/128x128/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/16x16/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/16x16/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/16x16/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/16x16/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/16x16/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/16x16/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/16x16/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/16x16/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/16x16/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/22x22/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/22x22/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/22x22/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/22x22/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/22x22/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/22x22/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/32x32/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/32x32/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/32x32/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/32x32/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/32x32/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/32x32/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/32x32/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/32x32/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/32x32/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/48x48/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/48x48/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/48x48/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/48x48/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/48x48/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/48x48/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/48x48/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/64x64/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/64x64/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/64x64/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/64x64/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/64x64/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/64x64/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/64x64/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/128x128/actions/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/128x128/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/128x128/apps/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/128x128/devices/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/crystalsvg/128x128/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/128x128/filesystems/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/crystalsvg/128x128/mimetypes/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/home/stephan/.kde/share/apps/kile/toolbar/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/home/stephan/.kde/share/apps/kile/pics/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/apps/kile/pics/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/home/stephan/.kde3.3/share/icons/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/icons/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/kde/3.3/share/icons/math1.png", R_OK) = -1 ENOENT (No such file or directory) access("/usr/share/pixmaps/math1.png", R_OK) = -1 ENOENT (No such file or directory)
I even tried to reproduce this bug installing the same icon theme, but failed. (by the way: does it happens with other themes?). This really does not make sense... maybe some conflict with other icon themes, do you have 'hicolor-icon-theme' or 'gnome-icon-theme' installed?
I tried "env KDEDIRS="/usr" kile" using the Crystal-SVG and KDE-Classic icons. I do have both 'hicolor-icon-theme' and 'gnome-icon-theme' installed. I just unmerged them and tried starting Kile again with the same result. FYI: I've seen this problem with a few KDE applications, so it doesn't seem to be Kile specific.
The same happens to me. If I do: env KDEDIRS="/usr/kde/3.3" kile I can see the icons. Other way I don't.
Could you do one more test? Try # KDEDIRS="/usr/kde/3.3:/usr" kile # KDEDIRS="/usr:/usr/kde/3.3" kile If results are different, then there's some bug in the kde icon loader (which is in kdelibs). In that case, make sure you have the most recent version of kdelibs and report this to http://bugs.kde.org. The output of strace as produced above, or a pointer to this bug could be useful for them, so maybe they can understand what's going on. I still cannot reproduce it and cannot say what's the cause.
Hi all, I don't use Gentoo, but I'm the Kile maintainer so I think I'm allowed to say something ;-) AFAIK KDEDIR will be deprecated, only use KDEDIRS, typically you would include KDEDIR in KDEDIRS. That is: KDEDIRS=/usr:/usr/kde/3.3 or something like this. The setup KDEDIR=/usr/kde/3.3 KDEDIRS=/usr is asking for trouble, I think. best, Jeroen Wijnhout best, Jeroen
KDEDIR will be ignored by KDE if KDEDIRS is set. This is as long as the application is using the standard interface (KStandardDirs() for example). So, I don't think it will matter. But we are deprecating KDEDIR.
same problem here with kile-1.8.1 But it helps to set KDEDIRS to /usr/kde INSTEAD of /usr (/usr/kde:/usr did NOT work for me!). Btw. kile is not the only application i'm having this problem with - the same holds for 'kbiff' (3.7.1). I haven't seen any drawbacks in setting KDEDIRS only to '/usr/kde'. Is there a reason why it should point to /usr? If someone has interest in straces (about 1,5MB each for kile) just tell me.
OK, i've found the drawback :-( koffice and perhaps other programs need KDEDIRS set to /usr
Why kile works without /usr in KDEDIRS is still a mistery. Anyway, I'm still waiting for answers to comment #12...
KDE 3.4.1 (~x86) kile 1.7.1 % unset KDDIRS ; kile -> works as expected % KDEDIRS="/usr/kde/3.4:/usr" kile -> works as expected % KDEDIRS="/usr:/usr/kde/3.4" kile -> missing icons
> % KDEDIRS="/usr/kde/3.4:/usr" kile > -> works as expected > > % KDEDIRS="/usr:/usr/kde/3.4" kile > -> missing icons Thanks, this clearly shows that there's some problem in kdelibs (it's only unclear why it only happens to someone). Could you post a bug to http://bugs.kde.org?
Same Problem and same solution here. In addition to most icons in the kile toolbar the quanta+ program-icon, the guitoo taskbar-icon and most of the openoffice filetype-icons were missing. Matthias
*** Bug 114256 has been marked as a duplicate of this bug. ***
I'm having this same problem with kde-3.5.3-r2 and kile-1.9 KDEDIRS="/usr/kde/3.5/" kile and KDEDIRS="/usr/kde/3.5:/usr" kile didn't work either.
This apparently doesn't move anywhere, why don't you submit this upstream?
yes, please submit this upstream.