From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-export-as-html-and-open problem Date: Wed, 06 Feb 2013 10:32:28 -0500 Message-ID: <13914.1360164748@alphaville> References: <8762273bui.fsf@bzg.ath.cx> <87wqun1wvy.fsf@bzg.ath.cx> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U36zB-0005qw-DO for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 10:32:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U36z9-0008Nt-5j for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 10:32:33 -0500 Received: from g1t0027.austin.hp.com ([15.216.28.34]:2076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U36z8-0008NZ-T4 for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 10:32:31 -0500 In-Reply-To: Message from zhenjiang xu of "Tue\, 05 Feb 2013 23\:35\:10 MST." 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: zhenjiang xu Cc: Bastien , emacs-orgmode@gnu.org zhenjiang xu wrote: > It's odd. The value of org-file-apps-defaults-gnu is: >=20 > ((remote . emacs) (system . mailcap) (t . mailcap)) >=20 > And I checked my local mime file, which shows google-chrome is the defaul= t app to open html files: >=20 > $ cat ~/.local/share/applications/mimeapps.list=C2=A0 > [Added Associations] > application/epub+zip=3DFBReader.desktop; > application/pdf=3Dpdf.desktop; > application/vnd.rn-realmedia=3Dsmplayer.desktop; > application/x-matroska=3Dsmplayer.desktop; > application/x-mimearchive=3Dfirefox.desktop; > application/x-ole-storage=3Dlibreoffice-impress.desktop; > audio/mpeg=3Daudacious.desktop; > text/html=3Dgoogle-chrome.desktop; > video/mpeg=3Dgnome-mplayer.desktop; > x-scheme-handler/mailto=3Dgoogle-chrome.desktop;KMail2.desktop; >=20 > [Default Applications] > text/html=3Dgoogle-chrome.desktop > x-scheme-handler/mailto=3Dgoogle-chrome.desktop >=20 > Any idea? Bastien pointed you to the mailcap files. The mailcap man page says $HOME/.mailcap:/etc/mailcap:/usr/share/etc/mailcap:/usr/local/etc/ma= ilcap -- default path for mailcap files. so those are the files to check. Nick >=20 > On Mon, Feb 4, 2013 at 4:29 PM, Bastien wrote: >=20 > zhenjiang xu writes: >=20=20=20=20 > > Thanks, Bastien. It's the default value - I've not changed it: > > > > org-file-apps is a variable defined in `org.el'. > > Its value is ((auto-mode . emacs) > > =C2=A0("\\.mm\\'" . default) > > =C2=A0("\\.x?html?\\'" . default) > > =C2=A0("\\.pdf\\'" . default)) >=20=20=20=20 > So you need to check the relevant variable: >=20=20=20=20 > org-file-apps-defaults-gnu > org-file-apps-defaults-macosx > org-file-apps-defaults-windowsnt >=20=20=20=20 > If the relevant variable uses the defaults (as I guess), > you need to configure the mailcap file for your system >=20=20=20=20 > See http://en.wikipedia.org/wiki/Mailcap >=20=20=20=20 > HTH, >=20=20=20=20 > -- > =C2=A0Bastien >=20 >=20 > ---------------------------------------------------- > Alternatives: >=20 > ----------------------------------------------------