From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: org-file-apps settings? Date: Sat, 17 Sep 2016 10:30:01 -0500 Message-ID: <87oa3mo87a.fsf@alphapapa.net> References: <87twdgdzu7.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blHZV-0001TL-Fy for emacs-orgmode@gnu.org; Sat, 17 Sep 2016 11:30:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blHZP-00058u-Gn for emacs-orgmode@gnu.org; Sat, 17 Sep 2016 11:30:28 -0400 Received: from [195.159.176.226] (port=45097 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blHZP-00058E-AL for emacs-orgmode@gnu.org; Sat, 17 Sep 2016 11:30:23 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1blHZ9-0003q8-8X for emacs-orgmode@gnu.org; Sat, 17 Sep 2016 17:30:07 +0200 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@gnu.org Matt Price writes: > Huh. I am not really able to figure this out. I imagine that part of > the problem may be that org tries to use mailcap as a method, and I > don't have any mailcap files. So I attempted this, which does not > work: > > '((system . "/usr/bin/xdg-open %s") > (auto-mode . emacs) > ("\\.odt\\'" . system) > ("\\.mm\\'" . default) > ("\\.x?html?\\'" . default) > ("\\.pdf\\'" . default) ) > > *Messages* reports that xdg-open has been run, but the file doesn't > actually run. seting the odt entry to "/usr/bin/libreoffice %s" > doesn't seem to have any effect at all -- the file just opens in > emacs. The only thing that works for now is this bizarre workaround: > '((system . "/usr/bin/libreoffice %s") > (auto-mode . emacs) > ("odt" . system) > ("\\.odt\\'" . "system") > ("\\.mm\\'" . default) > ("\\.x?html?\\'" . default) > ("\\.pdf\\'" . default)) > I don't undertand why this would work while the others don't. Of > course, this is a pretty lousy workaround since now everything opens > in libreoffice by default! That is really weird, all right. If it would help any, I could send you my /etc/mailcap file. Since Arch doesn't use one, maybe you could just drop the one from my Ubuntu system in, and maybe it would work without causing other problems...