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"?>
<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.
You might also like:
8 Comments
Leave a comment
Recent Posts
Projects that I support
Recent Comments
nope said:
yeah that was my first thought too, but: mount: warning: seems to be mounted read-write. too bad, would have been just perfect. more»Klaus Deiss said:
Dear Radu, I tried it on Ubuntu 10.0.4.2 and 10.0.4.3 with different kernel versions (amd64 server 2.6.32 kernel). No... more»scompo said:
Nope.. Now it’s not working again.. This printer it’s a real pain in the butt.. The other hp printer I had... more»Dmitrij said:
Thank you Peter and Patrice. Could you please post the updated script? more»hd_flash_pains said:
didn’t work for me more»








Thanks for the tip.
However the same setting can be changed in gconf-editor (I did), so there is a GUI solution
Wow, I was looking for this, and I couldn’t find it in internet.
Max is right, you can change it in gconf-editor (like regedit under windows)
Thank you very much!
This doesn’t work in ubuntu 11.04…
Anyone know a workaround?
I couldn’t find a solution on Natty Narwhal (ubuntu 11.04), but I finally found it myself.
All you have to do is :
#sudo gedit /etc/gnome/defaults.list
Add the following line :
x-scheme-handler/ftp=nautilus-folder-handler.desktop
Save and close, no need to reboot.
It seems to be due to gvfs-open handling files/extensions associations intead of gnome-open.
Worked for me too. Thanks!
Thanks EFZ, that worked perfectly.
On ubuntu natty 11.04 I also had to edit another file to get gvfs-open to use nautilus:
~/.local/share/applications/mimeapps.list
search for ftp in this file, and make sure it is set to nautilus as below (mine was set to firefox)
x-scheme-handler/ftp=nautilus;