File: desktop.sh

package info (click to toggle)
totem 43.2-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,496 kB
  • sloc: ansic: 30,058; python: 964; makefile: 228; xml: 221; sh: 157
file content (28 lines) | stat: -rwxr-xr-x 354 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
23
24
25
26
27
28
#!/bin/sh

. `dirname $0`/mime-functions.sh

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

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

get_video_mimetypes $1;
for i in $MIMETYPES ; do
	echo_mime;
done

get_playlist_media_mimetypes $1;
for i in $MIMETYPES ; do
	echo_mime;
done

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

echo ""