Hello! For the longest time, I was frustrated by the sluggishness of KDE programs. After poring through the posts here, I learned to use "strace <KDE program>" to find that the reason it takes so long is that KDE programs such as Konqueror or KWrite are looking in all the wrong places for their libraries (.SO files). For example, "strace konqueror" shows (partial output):
open("/usr/lib/qt3/lib/i686/sse/libkdeinit_konqueror.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt3/lib/i686/mmx/libkdeinit_konqueror.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt3/lib/i686/libkdeinit_konqueror.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt3/lib/sse/mmx/libkdeinit_konqueror.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt3/lib/sse/libkdeinit_konqueror.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt3/lib/mmx/libkdeinit_konqueror.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt3/lib/libkdeinit_konqueror.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/X11R6/lib/tls/i686/sse/mmx/libkdeinit_konqueror.so", O_RDONLY) = -1 ENOENT (No such file or directory)
... (and so on, interspersed with "stat64()" calls)
We see here that Konqueror searches for the file "libkdeinit_konqueror.so" in a bazillion places; the complete output, not shown here, reveals that it checks about 20 locations before it finds it under "/usr/lib". The same is repeated for all sorts of other library files.
The same thing happens with other KDE programs, such as KWrite, etc.
Is there some way I can tell KDE programs where the library files are? I understand that there's this thing called LD_LIBRARY_PATH but I see people discouraging its use, partly because of security reasons but mostly because it's a kludge. Is there some other environment variable where I can specify where the KDE libraries are? Is there a setting under the KDE control centre?
If anyone can help me with this, I'd appreciate it. I've done some tinkering with Linux, but I find the average geek level here slightly above mine, so please go easy on me.