File: _kcmshell

package info (click to toggle)
kde-dev-scripts 4%3A18.08.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,496 kB
  • sloc: perl: 15,466; lisp: 5,627; sh: 4,157; python: 3,892; ruby: 2,158; makefile: 16; sed: 9
file content (16 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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 `kde-config --path $resource| sed -e 's/:/ /g'`; do
	tmp=($i/$dir/**/*.desktop($flags))
	compadd -a tmp
done