From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-export gets mozilla; C-c C-o gets firefox Date: Thu, 15 Mar 2007 09:12:38 +0100 Message-ID: <4afda56788840b749f4d6447495c4495@science.uva.nl> References: <45F87D21.4000409@u.washington.edu> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HRl5i-0002cI-JD for emacs-orgmode@gnu.org; Thu, 15 Mar 2007 04:13:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HRl5g-0002c4-Kc for emacs-orgmode@gnu.org; Thu, 15 Mar 2007 04:13:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRl5g-0002c1-FW for emacs-orgmode@gnu.org; Thu, 15 Mar 2007 03:13:40 -0500 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HRl4g-0005mj-CQ for emacs-orgmode@gnu.org; Thu, 15 Mar 2007 04:12:38 -0400 In-Reply-To: <45F87D21.4000409@u.washington.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Scott Otterson Cc: emacs-orgmode@gnu.org On Mar 14, 2007, at 23:54, Scott Otterson wrote: > When I visit an org mode http link with C-c C-o, emacs opens up firefox > and goes to that url. However, when I use: > > org-export > b > > the Mozilla web browser pops up instead. This is on a Linux machine, > org 4.68, and with the emacs variable browse-url-browser-function set > to > browse-url-firefox. I tried switching this browse-url-default-browser > and got the same behavior and then both org-export and C-c C-o pop up > Mozilla, so it appears that org-mode is ignoring the > browse-url-browser-function variable. > > Does anybody know how I can make org-mode always pop up Firefox? C-c C-o on a http url uses browse-url opening a local html file (C-c C-o on a file:... link, or org-export b) uses system dependent settings. On a Linux system it uses mailcap. I am not too familiar with the workings of this, but basically it identifies a file as text/html and then looks for viewers in - the file pointed to by the ENV variable MAILCAPS - in other files like ~/.mailcap, /etc/mailcap, or /usr/etc/mailcap I believe it basically uses the same settings that will open a .html file by clicking it in konqueror or whatever you use for looking at your file system on the desktup. Hope this helps. - Carsten