From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: ODT export --> opening in Okular? Date: Wed, 12 Dec 2018 08:41:35 +0800 Message-ID: <1679fdc9f6a.102fa0ca058102.5578147846648149352@zoho.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWsb3-00089x-3t for emacs-orgmode@gnu.org; Tue, 11 Dec 2018 19:41:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWsaz-0005Ew-VU for emacs-orgmode@gnu.org; Tue, 11 Dec 2018 19:41:53 -0500 Received: from sender-pp-092.zoho.com ([135.84.80.237]:25469) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gWsaz-00057L-KN for emacs-orgmode@gnu.org; Tue, 11 Dec 2018 19:41:49 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode ---- On Tue, 11 Dec 2018 01:00:15 +0800 wrote ---- > Check your ~/.mailcap and/or /etc/mailcap file as well: there are indeed > many twisty passages through org-open-file, so you may end up calling > whatever the system has set up (correctly or not). > Nick Aha, that was the answer. Apparently installing Okular adds this bit of silliness into /etc/mailcap: application/vnd.oasis.opendocument.text; okular %s --icon okular -caption Okular; test=test -n "$DISPLAY" ... which I find now has also been reported to Debian as a bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857443 I still think it's insane, but at least now it's clear where the insanity lies: with Okular's inflated sense of self-importance :D But, what I still don't understand is, after adding an ODT entry to org-file-apps, why did org revert to querying mailcap...? Value: ((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . "/usr/bin/firefox %s") ("\\.odt\\'" . "/usr/bin/libreoffice6.0 %s") ("\\.pdf\\'" . "/usr/bin/okular %s")) Original value was ((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . default) ("\\.pdf\\'" . default)) ... this has exactly zero effect. Org ignores the odt line here, where I would expect an org-specific preference setting to override the system default. hjh