Usage of env and shutdown directories of KDE
Gökçen Eraslan
gokcen at pardus.org.tr
Mon Apr 25 11:52:07 BST 2011
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.
[1]
https://build.opensuse.org/package/view_file?file=startkde.diff&package=kdebase4-
workspace&project=openSUSE%3AFactory&srcmd5=799755ebf5e167f59cc2f50cb1ea11b2
--
Gökçen Eraslan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110425/6d51bd92/attachment.sig>
More information about the kde-core-devel
mailing list