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: > > > > ---------------------------------------------------- >