From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: use of 'system in ox-odt.el Date: Tue, 19 May 2015 22:38:33 +0200 Message-ID: <20150519203833.GA18927@chitra.no-ip.org> References: <87vbfopqd6.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuoHi-0002We-LS for emacs-orgmode@gnu.org; Tue, 19 May 2015 16:38:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuoHd-0000Oa-ML for emacs-orgmode@gnu.org; Tue, 19 May 2015 16:38:42 -0400 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:36181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuoHd-0000OA-E2 for emacs-orgmode@gnu.org; Tue, 19 May 2015 16:38:37 -0400 Received: by wizk4 with SMTP id k4so132062783wiz.1 for ; Tue, 19 May 2015 13:38:35 -0700 (PDT) Received: from chitra.no-ip.org (ip82-139-115-46.lijbrandt.net. [82.139.115.46]) by mx.google.com with ESMTPSA id g5sm23387255wjq.6.2015.05.19.13.38.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2015 13:38:35 -0700 (PDT) Content-Disposition: inline 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Tue, May 19, 2015 at 02:19:10PM -0400, Matt Price wrote: > On Tue, May 19, 2015 at 10:57 AM, Rasmus wrote: > > > Matt Price writes: > > > > > When I export-and-open to odt, org doesn't open the resultant odt, even > > > though I get a message: > > > > > > Running xdg-open /home/matt/RLG231/RLG231Syllabus.odt...done > > > > > > org-open-file works fine on links in an org buffer, and an anser on the > > > following stackoverflow page suggests the issue is in ox-odt.el: > > > > With your change it open the odt file as a tar-mode file from Emacs -q. > > Without your change it doesn't open it at all. BTW: My Emacs also doesn't > > open html exports in Fx files when I use C-c C-e h-o. I never tried to > > debug it though... > > > > > Yeah, I just got that too -- I realized I hadn't been testing it in the > right environment, shoot. this modification worked for me (also form the > same forum): > > > (setcdr (assq 'system org-file-apps-defaults-gnu ) '(call-process > "xdg-open" nil 0 nil file)) > > Not sure why this should work when the default fails. Fx opens html > exports for me with C-c C-e h-o -- also not sure why that should work and > odt fail. Do you have a mailcap which says otherwise? That's what I would suspect given the doc string for org-file-apps and the default value of org-file-apps-defaults-gnu on my system. -- Suvayu Open source is the future. It sets us free.