-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.mailcap
55 lines (48 loc) · 1.76 KB
/
.mailcap
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
##
# Mailcap file which sets the default application for various mime types.
#
# For cases where the default app here is not properly used, try using xdg-mime
# instead to add entries to .local/share/applications/defaults.list:
# $ xdg-mime default evince.desktop application/pdf
# xdg-mime expects a '.desktop' application arg, which (I think) has to exist
# in /usr/share/applications
#
# If the wrong app is still used, edit the global defaults.list and force the
# cache to be updated:
# $ sudo -E vim /usr/share/applications/defaults.list
# $ sudo update-desktop-database
###
# images
image/bmp;feh %s
image/gif;feh %s
image/ilbm;feh %s
image/jpg;feh %s
image/jpeg;feh %s
image/png;feh %s
image/tiff;feh %s
image/x-png;feh %s
image/x-ilbm;feh %s
image/vnd.adobe.photoshop;psdview %s
# text, html, xml
text/plain;vim %s
text/xml;vim %s
text/x-diff;vim %s
# miscellaneous file types can end up as this (md/markdown is one)
application/octet-stream;vim %s
# bound as <return> on attachments view in mutt
text/html;xdg-open %s &; nametemplate=%s.html; needsterminal;
# default command for mutt to use when viewing html emails w/ no text version
text/html;w3m -I %{charset} -T text/html; copiousoutput;
# pdf
application/pdf;zathura %s
image/pdf;zathura %s
# word, excel
# wordview is in the catdoc package
application/rtf;wordview %s
application/msword;wordview %s
#application/vnd.openxmlformats-officedocument.wordprocessingml.document;abiword %s # .docx
application/vnd.oasis.opendocument.text;abiword %s
application/excel;gnumeric %s; copiousoutput; nametemplate=%s.xls
application/msexcel;gnumeric %s; copiousoutput; nametemplate=%s.xls
application/vnd.ms-excel;gnumeric %s; copiousoutput; nametemplate=%s.xls
application/x-msexcel;gnumeric %s; copiousoutput; nametemplate=%s.xls