Radu Cotescu's professional blog

g33k w17h pa45510n

How to Set Nautilus as the Default FTP Handler in Linux

After I had installed Firefox 3.6 on my Ubuntu machines I noticed that when I would want to open the FTP bookmarks saved in Nautilus those targets would open in tabs from Firefox. The problem with this approach was that I couldn’t edit files (create, update, delete) the way I could with Nautilus. After some diggings I found out that this change in behavior was due to the fact that at some point I chose Firefox to be the default browser (which was something fully assumed because it’s my favorite browser). Doing this associates Firefox as the handler for ftp:// links instead on relaying that part to Nautilus.

Unfortunately the solution for this problem doesn’t have a graphical approach. It’s not something you choose in your Preferred Applications. Instead one has to edit the %gconf.xml file located in the ~/.gconf/desktop/gnome/url-handlers/ftp folder and make it look like this:

<?xml version="1.0"?>
        <entry name="needs_terminal" mtime="1264151220" type="bool" value="false"/>
        <entry name="enabled" mtime="1264151220" type="bool" value="true"/>
        <entry name="command" mtime="1264151220" type="string">

The important line here is the one located between the stringvalue tags. I just hope that in the next versions of GNOME these kind of things will be easier to maintain by providing a GUI for the user. This is one aspect that Linux still has to improve. It won the servers, but let’s make it reach the desktops too.

How To, Linux, Ubuntu

« Save power when using your PC with MicroMiser How to install OpenOffice.org 3.2 on Ubuntu »