--- sampleconf/mimeview	2020-04-02 14:50:29.000000000 +0200
+++ sampleconf/mimeview.mac	2021-02-02 08:54:33.684741377 +0100
@@ -1,10 +1,11 @@
 # @(#$Id: mimeview,v 1.16 2008-09-15 08:03:37 dockes Exp $  (C) 2004 J.F.Dockes
 
 ## ##########################################
 # External viewers, launched by the recoll GUI when you click on a result
 # 'edit' link
+# On the MAC, we use "open" for everything...
 
 # Mime types which we should not uncompress if they are found gzipped or
 # bzipped because the native viewer knows how to handle. These would be
 # exceptions and the list is normally empty
 #nouncompforviewmts = 
@@ -17,22 +18,19 @@
 #  - For pages of CHM and EPUB documents where we can choose to open the 
 #    parent document instead of a temporary html file.
 # Use xallexcepts- and xallexcepts+ in a user file to add or remove from
 # the default xallexcepts list
 
-xallexcepts = application/pdf application/postscript application/x-dvi \
- text/html|gnuinfo text/html|chm text/html|epub text/html|rclman \
- application/x-fsdirectory|parentopen inode/directory|parentopen
+#xallexcepts = application/pdf application/postscript application/x-dvi \
+# text/html|gnuinfo text/html|chm text/html|epub \
+# application/x-fsdirectory|parentopen inode/directory|parentopen
 
 
 [view]
 # Pseudo entry used if the 'use desktop' preference is set in the GUI.
 # Note that we use %U to url-encode the parameter
-application/x-all = xdg-open %U
-# But do use the uncoded url for help (F1) because the fragment in there must
-# actually be processed.
-text/html|rclman = xdg-open %u
+application/x-all = open %f
 
 application/epub+zip = ebook-viewer %f
 # Open the parent epub document for epub parts instead of opening them as
 # html documents. This is almost always what we want.
 text/html|epub = ebook-viewer %F;ignoreipath=1
@@ -162,27 +160,27 @@
 application/x-rar = ark %f
 application/x-tar = ark %f
 application/zip = ark %f
 application/x-7z-compressed = ark %f
 
-application/javascript = emacsclient --no-wait %f
-application/x-awk = emacsclient --no-wait %f
-application/x-bibtex = emacsclient --no-wait %f
-application/x-csharp = emacsclient --no-wait %f
-application/x-java = emacsclient --no-wait %f
-application/x-perl = emacsclient --no-wait %f
-application/x-php = emacsclient --no-wait %f
-application/x-ruby = emacsclient --no-wait %f 
-application/x-shellscript = emacsclient --no-wait %f
-text/x-bibtex = emacsclient --no-wait %f
-text/css = emacsclient --no-wait %f
-text/x-csharp = emacsclient --no-wait %f
-text/x-java = emacsclient --no-wait %f
-text/x-perl = emacsclient --no-wait %f
-text/x-ruby = emacsclient --no-wait %f 
-text/x-shellscript = emacsclient --no-wait %f
-text/x-srt = emacsclient --no-wait %f
+application/javascript = emacsclient  %f
+application/x-awk = emacsclient  %f
+application/x-bibtex = emacsclient  %f
+application/x-csharp = emacsclient  %f
+application/x-java = emacsclient  %f
+application/x-perl = emacsclient  %f
+application/x-php = emacsclient  %f
+application/x-ruby = emacsclient  %f 
+application/x-shellscript = emacsclient  %f
+text/x-bibtex = emacsclient  %f
+text/css = emacsclient  %f
+text/x-csharp = emacsclient  %f
+text/x-java = emacsclient  %f
+text/x-perl = emacsclient  %f
+text/x-ruby = emacsclient  %f 
+text/x-shellscript = emacsclient  %f
+text/x-srt = emacsclient  %f
 
 # Or firefox -remote "openFile(%u)"
 text/html = firefox %u
 application/x-chm-html = %u
 text/x-chm-html = %u
@@ -193,46 +191,46 @@
 text/html|gnuinfo = rclshowinfo %F %(title);ignoreipath=1
 
 application/x-webarchive = konqueror %f
 text/x-fictionbook = ebook-viewer %f
 
-application/x-javascript = emacsclient --no-wait  %f
-application/sql = emacsclient --no-wait  %f
-application/x-tex = emacsclient --no-wait  %f
-application/xml = emacsclient --no-wait  %f
-text/xml = emacsclient --no-wait  %f
-text/x-tex = emacsclient --no-wait  %f
-text/plain = emacsclient --no-wait  %f
-text/x-awk = emacsclient --no-wait  %f
-text/x-c = emacsclient --no-wait  %f
-text/x-lua = emacsclient --no-wait  %f
-text/x-c+ = emacsclient --no-wait  %f
-text/x-c++ = emacsclient --no-wait  %f
+application/x-javascript = emacsclient   %f
+application/sql = emacsclient   %f
+application/x-tex = emacsclient   %f
+application/xml = emacsclient   %f
+text/xml = emacsclient   %f
+text/x-tex = emacsclient   %f
+text/plain = emacsclient   %f
+text/x-awk = emacsclient   %f
+text/x-c = emacsclient   %f
+text/x-lua = emacsclient   %f
+text/x-c+ = emacsclient   %f
+text/x-c++ = emacsclient   %f
 text/x-csv = libreoffice %f
 text/x-html-sidux-man = konqueror %f
 text/x-html-aptosid-man = iceweasel %f
 
 application/x-chm = kchmviewer %f
 # Html pages inside a chm have a chm rclaptg set by the filter. Kchmviewer
 # knows how to use the ipath (which is the internal chm path) to open the
 # file at the right place
 text/html|chm = kchmviewer --url %i %F
 
-text/x-ini = emacsclient --no-wait %f
+text/x-ini = emacsclient  %f
 text/x-man = xterm -u8 -e "groff -T ascii -man %f | more"
 text/x-python = idle %f
-text/x-gaim-log = emacsclient --no-wait  %f
-text/x-purple-html-log = emacsclient --no-wait  %f
-text/x-purple-log = emacsclient --no-wait  %f
+text/x-gaim-log = emacsclient   %f
+text/x-purple-html-log = emacsclient   %f
+text/x-purple-log = emacsclient   %f
 
 # The video types will usually be handled by the desktop default, but they
 # need entries here to get an "Open" link
-video/3gpp = vlc %f
-video/mp2p = vlc %f
-video/mp2t = vlc %f
-video/mp4 = vlc %f
-video/mpeg = vlc %f
-video/quicktime = vlc %f
-video/x-matroska = vlc %f
-video/x-ms-asf = vlc %f
-video/x-msvideo = vlc %f
+video/3gpp = open %f
+video/mp2p = open %f
+video/mp2t = open %f
+video/mp4 = open %f
+video/mpeg = open %f
+video/quicktime = open %f
+video/x-matroska = open %f
+video/x-ms-asf = open %f
+video/x-msvideo = open %f
 
