File: launcher.map

package info (click to toggle)
launcher 0.86-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 220 kB
  • ctags: 50
  • sloc: tcl: 903; makefile: 85; sh: 18
file content (148 lines) | stat: -rw-r--r-- 4,596 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
######################################################################
## extension -> handler file for launcher program
## Ethan Gold <etgold@cs.columbia.edu> 6/6/99
## This is a comment.
## The Launcherconfig GUI config file editor will preserve
## all comments in the first contiguous comment block. All others
## will be discarded.
##
## If more than one handler is defined per type,
## a GUI listbox will be called to  request a choice from the user.
## An arbitrary number of handlers may be defined for each type either
## on a single line or as separate map directives.
## Each entry must be on a *single* line. Entries may appear in any order.
## */* is the default handler. Leaving it undefined will result in the
## user being prompted with ALL defined handlers for unrecognized files.
## "%s" expands to the filename(s) in question, and "%d" expands to the
## parent directory of the first filename in "%s".
##
#### handler Fields (whitespace separated):
## "handler", macroname, multiplefileflag, prettyname, handler_definition
##
#### map Fields (whitespace separated):
## "map", mimetype, handlermacro
##
#### launcher prefs fields (whitespace separated):
## "launcher" directive boolean
######################################################################

######## launcher preferences ########
launcher all 1
launcher nowait 0
launcher default 0

######## handler macro definitions ########
## plaintext
handler emacs	1 "Emacs"	emacs %s
## wrapper on emacs/client
handler emacsclient	1 "Emacs (client)" emacsw %s
handler gxedit	0 "GXedit"	gxedit %s
handler xedit	0 "Xedit"	xedit %s
handler jmacs	0 "Jmacs"	xterm -e jmacs %s
handler printtofile	0 "Printtofile"	printtofile %s

## makefiles
handler make	0 "Make"	make -f %s -C %d |& tknotify -f -
handler makeclean 0 "Make clean"	make -f %s -C %d clean |& tknotify -f -

## html/URL
handler netscape_rf	0 "Netscape file" netscape3 -remote openFile(%s)
handler netscape_ru	0 "Netscape URL" netscape3 -remote openURL(%s, new-window)

## WordPerfect!!
handler wp		1 "WordPerfect"	/usr/local/WordPerfect/wpbin/xwp %s

## java classfiles
handler javawrap	0 "JavaWrap" javawrap %s

## image handlers
handler xv		1 "XV"	xv -8 -owncmap %s
handler gimp	1 "Gimp"	gimp %s
handler xanim	0 "Xanim"	xanim %s
handler xwud	0 "Xwud"	xwud %s

## postscript and related
handler gv		0 "GV"	gv %s
handler xdvi	0 "Xdvi"	xdvi %s
handler acrobat	1 "Acrobat"	acroread %s

## audio
handler tracker	0 "Tracker"	tracker %s
handler showaudio	0 "Show audio"	showaudio %s
handler wavplay	0 "Wavplay"	wavplay %s

## compression
handler tkarchive	1 "tkArchive" tkArchive %s
handler view_compressed 1 "Peek in Compressed..." launcher --all --compressed %s
handler zless		1 "ZLess" xterm -e zless %s


## directories - filemanager?
handler dfm 	1 "dfm" dfm %s

## binary files?
handler hexedit 0 "Hexedit" xterm -e hexedit %s

## other
handler saveas	1 " Copy to" runit -w --location +300+300 cp %s
handler openwith 	0 " Other..." runit +w +p --location +300+300 %s

## exec
handler exec	0 " Execute" %s
handler exec_shell	0 " Execute in shell" xterm -e %s
######## end handler macro definitions ########


######## type/handler mappings ########
map */*	
map filesystem/directory	dfm
map text/*		emacs
map text/Makefile	emacs
map text/Makefile	make
map text/Makefile	makeclean
map text/src-tcl	emacs
map text/src-java	emacs
map text/plain	emacs jmacs gxedit xedit printtofile make makeclean
map text/src-c	emacs
map text/src-c++	emacs
map text/html	emacs
map text/html	netscape_rf
map text/URL	netscape_ru
map text/sgml	emacs
map text/src-perl	emacs
map text/richtext	emacs
map application/x-tex	emacs
map application/java-classfile	javawrap
map application/postscript	gv
map application/x-dvi	xdvi
map application/pdf	gv
map application/pdf	acrobat
map application/x-tar	tkarchive
map application/x-gtar	tkarchive
map application/x-gzip	tkarchive view_compressed zless
map application/x-bzip2	tkarchive
map application/executable exec exec_shell
map application/octet-stream exec_shell hexedit xv openwith tkarchive zless view_compressed
map image/*		xv
map image/xpm	xv
map image/jpeg	xv
map image/jpeg	gimp
map image/gif	xv
map image/gif	xanim
map image/x-portable-pixmap	xv
map image/x-portable-anymap	xv
map image/targa	xv
map image/tiff	xv
map image/x-xwindowdump	xv
map image/x-xwindowdump	gimp
map image/x-xwindowdump	xwud
map audio/basic	showaudio
map audio/mod	tracker
map audio/basic	showaudio
map audio/x-wav	wavplay
map audio/x-aiff	showaudio
map audio/x-realaudio	raplayer
map video/quicktime	xanim
map video/mpeg		xanim
map video/x-msvideo	xanim