How to set Nautilus as the default FTP handler in Linux

Friday, January 22nd 2010, 18:03

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"?>
<gconf>
        <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">
                <stringvalue>/usr/bin/nautilus</stringvalue>
        </entry>
</gconf>

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.

Similar Posts:

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">


CODE EXAMPLES: When you want to include source code or terminal output, please use the the following tags like in the next example:

    [language]
    code lines
    [/language]
	

where you substitute language with the programming laguage used throught the code example (for terminal output that would be bash), e.g:

    [bash]
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    [/bash]
	

To see a list of all the supported languages, please check this page.

If you want to include code bits inline, please use the code tags like in the following example:

    The <code>$USER</code> variable holds the current logged in username.
	

Secure your files

Dropbox

Recent Comments

  • Radu said:
    After you install VMware Server there is no menu entry for it. To access its interface you should open a browser tab and go to... more»
  • Radu said:
    I bought mine just a month before they launched the 3rd generation. But it’s really okay for my needs. more»
  • Radu said:
    Something must have gone wrong during the install process. Try to reinstall the drivers (after you have uninstalled them previously)... more»
  • Radu said:
    I think you should start Firefox (due to the fact that the plugin runs under it) with that custom wrapper script. more»
  • RGG said:
    As with Mai I removed vmnet, vmci and vmmon. Ran sudo vmware-config.pl and it reran the last part of the install but did not add any... more»

Recent Tweets

Geek blogs

Bear