[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Usage of env and shutdown directories of KDE
From:       Ingo =?iso-8859-15?q?Kl=F6cker?= <kloecker () kde ! org>
Date:       2011-04-25 17:22:23
Message-ID: 201104251922.32632 () thufir ! ingo-kloecker ! de
[Download RAW message or body]


On Monday 25 April 2011, Gökçen Eraslan wrote:
> Hi,
> 
> I've confused about the path of the env and shutdown directories of
> KDE. In startkde script, env directory is sourced like this:
> 
> 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"
>   done
> done
> 
> So, if a distro uses "/usr/lib" as libdir, sh files are searched in
> ~/.kde and /usr/env directories since kde4-config is called with
> "--path lib" parameters. This is the case in Pardus and Kubuntu
> 10.10. openSUSE patched[1] startkde to source /usr/share/kde4/env
> directory. Same thing is valid for shutdown directory.
> 
> Is this the intended behaviour? As far as I can see, there is no such
> entry in kde4-config like "kde4-config --path env". That kind of
> path variable would be useful.

Maybe. In any case, "data" appears to be a better choice than "lib". At 
least on openSUSE.

# kde4-config --path data
~/.kde/share/apps/:/usr/share/kde4/apps/:/etc/kde4/share/apps/


Regards,
Ingo

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic