#compdef kcmshell=kcmshell appletproxy=appletproxy

local i resource tmp dir flags
if [ "$service" = "kcmshell" ]; then
	resource="apps";
	dir="/Settings";
	flags=":t:r";
else
	resource="data";
	dir="/kicker/applets";
	flags=":t"
fi
for i in `tde-config --path $resource| sed -e 's/:/ /g'`; do
	tmp=($i/$dir/**/*.desktop($flags))
	compadd -a tmp
done
