Change FileZilla settings in Ubuntu Linux so view/edit uses gedit

This is similar to the Super User question How to change FileZilla so that View/Edit opens .html in Notepad++, not Firefox, but I am asking for FileZilla in Linux. I am using Ubuntu 10.0.4 (Lucid Lynx).

Currently my FileZilla opens files using OpenOffice. I want to change to gedit for all the .log files, etc.

EDIT:

For some reason, my FileZilla has no File Edit and other settings. This is the screenshot to prove I am not blind:

screenshot from FileZilla


Solution 1:

Go to Edit -> Settings....

Scroll down to File editing -> Filetype associations.

In the Custom filetype associations box, add the line html /usr/bin/gedit (and remove any other line starting with html).

(Taken from here - it's Linux Mint but it should be similar enough in Ubuntu.)