source: trunk/dports/textproc/recoll/files/patch-sampleconf-mimeview.diff

Last change on this file was 144413, checked in by devans@…, 4 years ago

recoll: update to version 1.21.3, dependencies, remove outdated patch file (#49733).

File size: 5.6 KB
  • sampleconf/mimeview

    old new  
    22
    33## ##########################################
    44# External viewers, launched by the recoll GUI when you click on a result
    5 # 'edit' link
     5# 'Open' link - MAC version
     6# On the MAC, we use "open" for everything...
    67
    78# Mime types which we should not uncompress if they are found gzipped or
    89# bzipped because the native viewer knows how to handle. These would be
     
    1617#    search string
    1718#  - For pages of CHM and EPUB documents where we can choose to open the
    1819#    parent document instead of a temporary html file.
    19 xallexcepts = application/pdf application/postscript application/x-dvi \
    20  text/html|gnuinfo text/html|chm text/html|epub \
    21  application/x-fsdirectory|parentopen inode/directory|parentopen
     20#xallexcepts = application/pdf application/postscript application/x-dvi \
     21#            text/html|gnuinfo text/html|chm text/html|epub
    2222
    2323[view]
    2424# Pseudo entry used if the 'use desktop' preference is set in the GUI
    25 application/x-all = xdg-open %u
     25application/x-all = open %f
    2626
    2727application/epub+zip = ebook-viewer %f
    28 # Open the parent epub document for epub parts instead of opening them as
    29 # html documents. This is almost always what we want.
    30 text/html|epub = ebook-viewer %F;ignoreipath=1
    31 
    32 application/x-gnote = gnote %f
     28# If you want to open the parent epub document for epub parts instead of
     29# opening them as html documents:
     30#text/html|epub = ebook-viewer %F;ignoreipath=1
    3331
    3432application/x-mobipocket-ebook = ebook-viewer %f
    3533
     
    3735application/x-abiword = abiword %f
    3836
    3937application/pdf  = evince --page-index=%p --find=%s %f
    40 # Or:
    41 #application/pdf  = qpdfview --search %s %f#%p
    42 
    4338application/postscript = evince --page-index=%p --find=%s %f
    4439application/x-dvi = evince --page-index=%p --find=%s  %f
    4540
     
    7974application/vnd.wordperfect = libreoffice %f
    8075text/rtf = libreoffice %f
    8176
     77application/x-chm = kchmviewer %f
    8278application/x-dia-diagram = dia %f
    83 
    8479application/x-fsdirectory = dolphin %f
    85 inode/directory = dolphin %f
    86 
    87 # Both dolphin and nautilus can pre-select a file inside a
    88 # directory. Thunar can't afaik. xdg-open cant pass an additional
    89 # parameters so these are to be xallexcepts.
    90 application/x-fsdirectory|parentopen = dolphin --select %(childurl) %f
    91 inode/directory|parentopen = dolphin --select %(childurl) %f
    92 #application/x-fsdirectory|parentopen = nautilus %(childurl)
    93 #inode/directory|parentopen = nautilus %(childurl)
    94 
    9580application/x-gnuinfo = xterm -e "info -f %f"
    9681application/x-gnumeric = gnumeric %f
    9782
     
    11196image/x-ms-bmp = gwenview %f
    11297image/x-xpmi = gwenview %f
    11398
    114 # Opening mail messages not always works.
    115 #  - Thunderbird will only open a single-message file if it has an .emf
    116 #    extension
    117 #  - "sylpheed %f" seems to work ok as of version 3.3
    118 #  - "kmail --view %u" works
    11999message/rfc822 = thunderbird -file %f
    120100text/x-mail = thunderbird -file %f
    121101application/x-mimehtml = thunderbird -file %f
     
    129109application/zip = ark %f
    130110application/x-7z-compressed = ark %f
    131111
    132 application/x-awk = emacsclient --no-wait %f
    133 application/x-perl = emacsclient --no-wait %f
    134 text/x-perl = emacsclient --no-wait %f
    135 application/x-shellscript = emacsclient --no-wait %f
    136 text/x-shellscript = emacsclient --no-wait %f
     112application/x-awk = emacsclient %f
     113application/x-perl = emacsclient %f
     114text/x-perl = emacsclient %f
     115application/x-shellscript = emacsclient %f
     116text/x-shellscript = emacsclient %f
    137117
    138118# Or firefox -remote "openFile(%u)"
    139119text/html = firefox %u
     
    145125
    146126application/x-webarchive = konqueror %f
    147127text/x-fictionbook = ebook-viewer %f
    148 application/x-tex = emacsclient --no-wait %f
    149 application/xml = emacsclient --no-wait %f
    150 text/xml = emacsclient --no-wait %f
    151 text/x-tex = emacsclient --no-wait %f
    152 text/plain = emacsclient --no-wait %f
    153 text/x-awk = emacsclient --no-wait %f
    154 text/x-c = emacsclient --no-wait %f
    155 text/x-c+ = emacsclient --no-wait %f
    156 text/x-c++ = emacsclient --no-wait %f
     128application/x-tex = emacsclient %f
     129application/xml = emacsclient %f
     130text/xml = emacsclient %f
     131text/x-tex = emacsclient %f
     132text/plain = emacsclient %f
     133text/x-awk = emacsclient %f
     134text/x-c = emacsclient %f
     135text/x-c+ = emacsclient %f
     136text/x-c++ = emacsclient %f
    157137text/x-csv = libreoffice %f
    158138text/x-html-sidux-man = konqueror %f
    159139text/x-html-aptosid-man = iceweasel %f
    160140
    161 application/x-chm = kchmviewer %f
    162141# Html pages inside a chm have a chm rclaptg set by the filter. Kchmviewer
    163142# knows how to use the ipath (which is the internal chm path) to open the
    164143# file at the right place
    165144text/html|chm = kchmviewer --url %i %F
    166145
    167 text/x-ini = emacsclient --no-wait %f
     146text/x-ini = emacsclient %f
    168147text/x-man = xterm -u8 -e "groff -T ascii -man %f | more"
    169148text/x-python = idle %f
    170 text/x-gaim-log = emacsclient --no-wait %f
    171 text/x-purple-html-log = emacsclient --no-wait %f
    172 text/x-purple-log = emacsclient --no-wait %f
     149text/x-gaim-log = emacsclient %f
     150text/x-purple-html-log = emacsclient %f
     151text/x-purple-log = emacsclient %f
    173152
    174153# The video types will usually be handled by the desktop default, but they
    175154# need entries here to get an "Open" link
    176 video/3gpp = vlc %f
    177 video/mp2p = vlc %f
    178 video/mp2t = vlc %f
    179 video/mp4 = vlc %f
    180 video/mpeg = vlc %f
    181 video/quicktime = vlc %f
    182 video/x-matroska = vlc %f
    183 video/x-ms-asf = vlc %f
    184 video/x-msvideo = vlc %f
    185 
     155video/3gpp = open %f
     156video/mp2p = open %f
     157video/mp2t = open %f
     158video/mp4 = open %f
     159video/mpeg = open %f
     160video/quicktime = open %f
     161video/x-matroska = open %f
     162video/x-ms-asf = open %f
     163video/x-msvideo = open %f
Note: See TracBrowser for help on using the repository browser.