From mboxrd@z Thu Jan 1 00:00:00 1970 From: zhenjiang xu Subject: Re: org-export-as-html-and-open problem Date: Wed, 6 Feb 2013 10:51:15 -0700 Message-ID: References: <8762273bui.fsf@bzg.ath.cx> <87wqun1wvy.fsf@bzg.ath.cx> <13914.1360164748@alphaville> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307cfd566160ea04d511fb10 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U39A7-0004iX-WA for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 12:52:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U39A4-0008NH-K0 for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 12:51:59 -0500 Received: from mail-ve0-f181.google.com ([209.85.128.181]:50076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U39A4-0008NC-7Y for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 12:51:56 -0500 Received: by mail-ve0-f181.google.com with SMTP id d10so1474565vea.12 for ; Wed, 06 Feb 2013 09:51:55 -0800 (PST) In-Reply-To: <13914.1360164748@alphaville> 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: nicholas.dokos@hp.com Cc: Bastien , emacs-orgmode@gnu.org --20cf307cfd566160ea04d511fb10 Content-Type: text/plain; charset=ISO-8859-1 Sorry I forgot to mention that I don't have mailcap files in my Archlinux. On Wed, Feb 6, 2013 at 8:32 AM, Nick Dokos wrote: > zhenjiang xu wrote: > > > It's odd. The value of org-file-apps-defaults-gnu is: > > > > ((remote . emacs) (system . mailcap) (t . mailcap)) > > > > And I checked my local mime file, which shows google-chrome is the > default app to open html files: > > > > $ cat ~/.local/share/applications/mimeapps.list > > [Added Associations] > > application/epub+zip=FBReader.desktop; > > application/pdf=pdf.desktop; > > application/vnd.rn-realmedia=smplayer.desktop; > > application/x-matroska=smplayer.desktop; > > application/x-mimearchive=firefox.desktop; > > application/x-ole-storage=libreoffice-impress.desktop; > > audio/mpeg=audacious.desktop; > > text/html=google-chrome.desktop; > > video/mpeg=gnome-mplayer.desktop; > > x-scheme-handler/mailto=google-chrome.desktop;KMail2.desktop; > > > > [Default Applications] > > text/html=google-chrome.desktop > > x-scheme-handler/mailto=google-chrome.desktop > > > > 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/mailcap > -- default path > for mailcap files. > > so those are the files to check. > > Nick > > > > > On Mon, Feb 4, 2013 at 4:29 PM, Bastien wrote: > > > > zhenjiang xu writes: > > > > > 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) > > > ("\\.mm\\'" . default) > > > ("\\.x?html?\\'" . default) > > > ("\\.pdf\\'" . default)) > > > > So you need to check the relevant variable: > > > > org-file-apps-defaults-gnu > > org-file-apps-defaults-macosx > > org-file-apps-defaults-windowsnt > > > > If the relevant variable uses the defaults (as I guess), > > you need to configure the mailcap file for your system > > > > See http://en.wikipedia.org/wiki/Mailcap > > > > HTH, > > > > -- > > Bastien > > > > > > ---------------------------------------------------- > > Alternatives: > > > > ---------------------------------------------------- > --20cf307cfd566160ea04d511fb10 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Sorry I forgot to mention that I don't have mailcap fi= les in my Archlinux.


On Wed, Feb 6, 2013 at 8:32 AM, Nick Dokos &= lt;nicholas.doko= s@hp.com> wrote:
zhenjiang xu <zhenjiang.xu@gmail.com> wrote:
> It's odd. The value of org-file-apps-defaults-gnu is:
>
> ((remote . emacs) (system . mailcap) (t . mailcap))
>
> And I checked my local mime file, which shows google-chrome is the def= ault app to open html files:
>
> $ cat ~/.local/share/applications/mimeapps.list=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;
>
> [Default Applications]
> text/html=3Dgoogle-chrome.desktop
> x-scheme-handler/mailto=3Dgoogle-chrome.desktop
>
> Any idea?

Bastien pointed you to the mailcap files. The mailcap man page says
=A0 =A0 =A0 =A0$HOME/.mailcap:/etc/mailcap:/usr/share/etc/mailcap:/usr/loca= l/etc/mailcap =A0-- =A0default =A0path
=A0 =A0 =A0 =A0for mailcap files.

so those are the files to check.

Nick

>
> On Mon, Feb 4, 2013 at 4:29 PM, Bastien <bzg@altern.org> wrote:
>
> =A0 =A0 zhenjiang xu <zhe= njiang.xu@gmail.com> writes:
>
> =A0 =A0 > Thanks, Bastien. It's the default value - I've no= t changed it:
> =A0 =A0 >
> =A0 =A0 > org-file-apps is a variable defined in `org.el'.
> =A0 =A0 > Its value is ((auto-mode . emacs)
> =A0 =A0 > =A0("\\.mm\\'" . default)
> =A0 =A0 > =A0("\\.x?html?\\'" . default)
> =A0 =A0 > =A0("\\.pdf\\'" . default))
>
> =A0 =A0 So you need to check the relevant variable:
>
> =A0 =A0 org-file-apps-defaults-gnu
> =A0 =A0 org-file-apps-defaults-macosx
> =A0 =A0 org-file-apps-defaults-windowsnt
>
> =A0 =A0 If the relevant variable uses the defaults (as I guess),
> =A0 =A0 you need to configure the mailcap file for your system
>
> =A0 =A0 See http://en.wikipedia.org/wiki/Mailcap
>
> =A0 =A0 HTH,
>
> =A0 =A0 --
> =A0 =A0 =A0Bastien
>
>
> ----------------------------------------------------
> Alternatives:
>
> ----------------------------------------------------

--20cf307cfd566160ea04d511fb10--