changing default application associated with each file extension

Magnus Therning magnus at
Wed Jul 13 06:51:09 UTC 2005

On Wed, Jul 13, 2005 at 12:44:28AM +0200, Vincent Trouilliez wrote:
>On Wed, 2005-07-13 at 07:23 +0900, Jeff Co wrote:
>> Hello, 
>> I use Gnome and Nautilus. How can I change the default application
>> that opens up when I double click a file in Nautilus? For example,
>> html files open up in Firefox, but I would like that to be changed to
>> Galeon. I don't want to bother with having to right click the file,
>> then selecting "Open With..."
>Hi Jeff, I have the same problem too, I prefer Galeon to Firefox...
>Solution : Open Nautilus, find any HTML files. Righ-click on it, and
>select "Properties". Then click on the "Open With..." tab.  It should
>give you a list off all the program that are allowed/capable of reading
>HTML files. Select Galeon, click "OK", and you are done ! :o) The
>change takes effect immediately, you don't even need to restart

I personally find it irritating to have to change the browser setting in
several places (GNOME preferred app, Nautilus, more?) so I use a
convenient little Perl script that's installed by
default--'/usr/bin/sensible-browser' (debianutils is installed when
ubuntu-desktop is installed). It will call x-www-browser or www-browser
depending on the environment you're in (meaning that it can be used to
start a browser from command line tools as well). Then you control what
browser is the default using 'update-alternatives':

 $ cd /etc/alternatives
 $ sudo update-alternatives --config x-www-browser

Unfortunately there doesn't seem to be any GUI for doing that last step
(maybe a nice little project for the future?) so you're forced to start
a terminal.


Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
magnus at

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

A closed mouth gathers no foot.
     -- Simon Murcott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the ubuntu-users mailing list