From mboxrd@z Thu Jan 1 00:00:00 1970 From: zhenjiang xu Subject: Re: org-export-as-html-and-open problem Date: Tue, 5 Feb 2013 23:35:10 -0700 Message-ID: References: <8762273bui.fsf@bzg.ath.cx> <87wqun1wvy.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae9cfceb4821c4404d5088986 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2z0R-0000RS-1S for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 02:01:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2ybn-0000Uk-EN for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 01:38:12 -0500 Received: from mail-vb0-f45.google.com ([209.85.212.45]:52179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2ybn-0000Uf-8n for emacs-orgmode@gnu.org; Wed, 06 Feb 2013 01:35:51 -0500 Received: by mail-vb0-f45.google.com with SMTP id p1so621830vbi.18 for ; Tue, 05 Feb 2013 22:35:50 -0800 (PST) In-Reply-To: <87wqun1wvy.fsf@bzg.ath.cx> 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: Bastien Cc: emacs-orgmode@gnu.org --14dae9cfceb4821c4404d5088986 Content-Type: text/plain; charset=ISO-8859-1 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? 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 > --14dae9cfceb4821c4404d5088986 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
It's odd. The value of org-file-apps-defaul= ts-gnu is:

((remote . emacs) (system . mailcap) (t . ma= ilcap))

And I checked my local mime file, which shows google-chrome is the default = app to open html files:

$ cat ~/.local/sha= re/applications/mimeapps.list=A0
[Added Associations]
application/epub+zip=3DFBReader.desktop;
application/pdf=3Dpdf.desktop;
applicati= on/vnd.rn-realmedia=3Dsmplayer.desktop;
application/x-matroska=3Dsmplayer.desktop;
=
application/x-mimearchive=3Dfirefox.desktop;
application/x-ole-storage=3Dlibreoffice-impres= s.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 Ap= plications]
text/html=3Dgoogle-chrome.deskt= op
x-scheme-handler/mailto=3Dgoogle-chrome.= desktop

Any idea?

On Mon, Feb 4, 2013 at 4:29= PM, Bastien <bzg@altern.org> wrote:
zhenjiang xu <zhenjiang.xu@gmail.com> 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)
> =A0("\\.mm\\'" . default)
> =A0("\\.x?html?\\'" . default)
> =A0("\\.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,

--
=A0Bastien

--14dae9cfceb4821c4404d5088986--