Bug 147002

Summary: kde/env does not define LD_PRELOAD
Product: [Plasma] ksmserver Reporter: Olivier Vitrat <ovit.debian>
Component: generalAssignee: Lubos Lunak <l.lunak>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:

Description Olivier Vitrat 2007-06-20 16:00:14 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Debian stable Packages

Reported in Debian BTS at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425741

KDE uses to execute scripts ~/.kde/env/*.sh to setup environment variables, as it says in starkde(1) man page:

[quote]
startkde and ksmserver use the contents of the ~/.kde directory for starting previously saved sessions. Source scripts found in ~/.kde/env/*.sh can be used to define environment variables that will be available to all KDE programs.
[end quote]

I have one of such scripts in .kde/env which sets four environment variables, opne of them being LD_PRELOAD. When I query the environment in KDE (i.e. in a Konsole) I see the other three environment variables correctly set but no trace of LD_PRELOAD at all.

I can not set LD_PRELOAD in .bashrc or any similar because I need it set in KDE itself and in all the apps I start from the menu.
Comment 1 Lubos Lunak 2007-06-21 14:17:16 UTC
Already fixed. Remove suid from $KDEDIR/bin/start_kdeinit as a workaround.