How to set the KDE path?

Alex Schuster wonko at
Tue Feb 8 12:25:54 GMT 2011

Kevin Krammer writes:

> On Tuesday, 2011-02-08, Dotan Cohen wrote:

> > ‚úąganymede:~$ cat .kde/env/
> > #!/bin/bash
> > export PATH=$HOME/.bin:$PATH
> Maybe try without the first line.

Hmm, this can't really matter, it's just a comment.

I'd try adding something like
	echo $PATH > /tmp/startkde.log
to verify if this file is being sourced. Or maybe even edit 
/usr/bin/startkde, activating bash debug output, putting all stuff between 
parantheses and redirecting output to another log file:

	#  DEFAULT KDE STARTUP SCRIPT ( 4.6.00 (4.6.0) )
	set -xv # enable debugging
	[rest of script]
	) > /tmp/startkde.fulllog 2>&1

It might be better to only put the relevant part into parantheses. On my 
Gentoo system it's from line 199 to 214:

set -xv
libpath=`kde4-config --path lib | tr : '\n'`

for prefix in `echo "$libpath" | sed -n -e 's,/lib[^/]*/,/env/,p'`; do
  for file in "$prefix"*.sh; do
    test -r "$file" && . "$file"
) > /tmp/startkde.fulllog 2>&1

This message is from the kde mailing list.
Account management:
More info:

More information about the kde mailing list