File: desktop.sh

package info (click to toggle)
totem 3.14.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 22,708 kB
  • ctags: 4,289
  • sloc: ansic: 31,547; sh: 15,805; xml: 1,248; makefile: 1,188; python: 1,180
file content (22 lines) | stat: -rwxr-xr-x 264 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

echo_mime () {
	printf "$i;";
}

echo_handler () {
	printf "x-scheme-handler/$i;";
}

MIMETYPES=`grep -v ^# $1`
printf MimeType=;
for i in $MIMETYPES ; do
	echo_mime;
done

MIMETYPES=`grep -v ^# $2`
for i in $MIMETYPES ; do
	echo_handler;
done

echo ""